Hi there
Is there any way to check a table's existence before its creation in one stored procedure?? I did something as follows but it does not work. Please help me ...
Declare @sql varchar(255)
Select @sql = 'create table test (column_1 int primary key)
If (Exec @sql) <> 0
print 'Failed'
Else
print 'Done'
Is there any way to check a table's existence before its creation in one stored procedure?? I did something as follows but it does not work. Please help me ...
Declare @sql varchar(255)
Select @sql = 'create table test (column_1 int primary key)
If (Exec @sql) <> 0
print 'Failed'
Else
print 'Done'