Create Table Statement Error With If Exists Clause
I am having an issue when attempting to deploy DDL statements to create tables more than once. The code below is supposed to only create the table if it does not exists but its only successful if it is...
View ArticleRe: Create Table Statement Error With If Exists Clause
Hi Courtney, Try the following logic: if exists (select * from sysobjects where name="TestExec")drop table TestExecgobegin create....... Hope this helps
View ArticleRe: Create Table Statement Error With If Exists Clause
Hi Jack, I tried your suggestion but I still had the same erroruse Researchgo IF NOT EXISTS (SELECT * FROM sysobjects WHERE name="TestExec")BEGINcreate table TestExec ( UserID...
View ArticleRe: Create Table Statement Error With If Exists Clause
this is not a bug, it's supposed to work this way the batch (everything before the "go") is compiled before being executedif the table already exists, the create table statement will fail. it works...
View ArticleRe: Create Table Statement Error With If Exists Clause
Hi Courtney, The logic to use is to check to see if the object exist. If it does exist, drop the object before you create a new object of the same name: So you would use the IF EXISTS instead of the...
View ArticleRe: Create Table Statement Error With If Exists Clause
Thank you guys for your response. The funny thing is that the same logic works for some objects such as foreign keys etc. Just to give some more context on the reason why our code was created in such a...
View ArticleRe: Create Table Statement Error With If Exists Clause
What happens if the script uses deferred name resolution?
View ArticleRe: Create Table Statement Error With If Exists Clause
Deferred Name Resolution does not help with ad-hoc sql, rather it allows stored procedures to be created even when they reference objects that don't currently exist. So it is not of any help here. -bret
View ArticleRe: isql : not found error
bash-3.2$ env SYBASE_JRE6_64=/cpsybpv1/app/sybase/product/157/shared/JRE-6_0_24 MANPATH=/usr/openwin/man:/usr/man:/usr/dt/man TERM=xterm SHELL=/bin/sh SSH_CLIENT=161.126.234.236 53976 22...
View ArticleRe: isql : not found error
Thanks for the output. Can you please try this,ls -l /cpsybpv1/app/sybase/product/157/OCS-15_0/bin/isql and/cpsybpv1/app/sybase/product/157/OCS-15_0/bin/isql -v? What do you get?Cheers,Gek
View ArticleRe: isql : not found error
bash-3.2$ ls -l /cpsybpv1/app/sybase/product/157/OCS-15_0/bin/isql /cpsybpv1/app/sybase/product/157/OCS-15_0/bin/isql: No such file or directory bash-3.2$...
View ArticleRe: isql : not found error
Hello Vinay,That means you don't have the Sybase directory installed on the host box u wish to use.Please install it and make sure the Sybase directory and binaries exist before you do isql.Thank...
View ArticleRe: isql : not found error
Hi Gek, Please see the below o/p. bash-3.2$ echo $SYBASE /cpsybpv1/app/sybase/product/157 bash-3.2$ ls -l /app/sybase/product/157/OCS-15_0/bin/isql -rwxr-xr-x 1 sybase dba 3794300 Nov 27 2013...
View Articleidentity column value increases casuing overflow condition
All the configuration looks okay but Application team complains about . They are using Java RegardsRK
View ArticleRe: identity column value increases casuing overflow condition
More details would be helpful. Identity values naturally increase; that is their job.Your issue might be large sudden jumps in the identity values due to abrupt shutdowns of ASE using up the current...
View ArticleRe: isql : not found error
Hi P S Vinay,It looks like there's a subtle difference between the paths defined in SYBASE.sh and the actual path where isql resides. Based on the output provided:bash-3.2$ echo $SYBASE...
View ArticleRe: identity column value increases casuing overflow condition
This may be a shot in the dark, but worth a try. Regardless of the setting for the identity burn factor, or rolled back transactions, the number of possible identity values is limited by the datatype...
View ArticleRe: (name NAME NOT RECOVERABLE) and MEMC_CRCONSTR_1
Hi Mike,The MEMC_CRCONSTR_1 Allocator is incremented when a check constraint is added, default added/changed, decrypt default added/changed or creation of computed column. These might be key indicators...
View ArticleRe: Create Table Statement Error With If Exists Clause
Two alternatives:1) put the DROP TABLE and CREATE TABLE in separate batches byputting a "go" before the CREATE TABLE:use tempdbgoIF OBJECT_ID('t1') IS NOT NULLBEGINDROP table t1IF OBJECT_ID('t1') IS...
View ArticleTLS support on SAP ASE 15.7
Hi,Can anyone confirm that ASE 15.7 supports TLS 1.2?We can get all cipher suites enabled but does it support TLS 1.2? sp_ssladmin lscipher go Cipher SuiteName...
View Article