Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking if a table exists
Message
 
To
29/02/2008 10:56:26
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01297733
Message ID:
01297738
Views:
12
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[MyTable]') and OBJECTPROPERTY(id, N'IsTable') = 1)
drop table [dbo].[MyTable]
Woodie Westbrook
I came, I saw, I compiled.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform