I've also tried the script to delete a normal table as below;
I'm getting the error 3706 - "Expected something between 'and' & 'table'.
Where is the code wrong?
I can't think of what should go between 'and' & 'table'?
Thanks
select 1 from DATABASE_NAME.TABLE_NAME
where database = DATABASE_NAME
and table = TABLE_NAME
.if activitycount = 0 then GoTo ok
drop table DATABASE_NAME.TABLE_NAME
.label ok
↧