Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Create Table Statement Error With If Exists Clause

$
0
0

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 IF NOT exists.

 

IF EXISTS

 

     (select * from sysobjects where name="TestExec")

 

drop table TestExec

go

 

begin


Viewing all articles
Browse latest Browse all 3587

Trending Articles