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 Jack,

 

I tried your suggestion but I still had the same error

use Research

go

 

 

IF NOT EXISTS     (SELECT * FROM sysobjects WHERE name="TestExec")

BEGIN

create table TestExec (

        UserID                      int                              not null  ,

        FirstName                   varchar(30)                       not null  ,

        LastName                    varchar(30)                       not null  ,

        CONSTRAINT PK_TestExec_UserID PRIMARY KEY CLUSTERED ( UserID )

)

lock datapages

END

Go

 

Number (2714) Severity (16) State (1) Server (prod_support) There is already an object named 'TestExec' in the database.


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>