Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verification if a primary key exists
Message
 
 
To
04/03/2008 15:10:59
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01298604
Message ID:
01298622
Views:
17
>>
>>IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
>>	WHERE CONSTRAINT_TYPE = 'PRIMARY KEY'
>>		AND TABLE_NAME = 'MyTable')
>>
>
>Thanks, that works.

You're welcome.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform