Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, January 21, 2011

How to check a primary key exists or not in table

IF OBJECTPROPERTY( OBJECT_ID( '[dbo].[Customers]' ), 'TableHasPrimaryKey' ) = 1
PRINT '[dbo].[Customers] table has a primary key.

No comments :

Post a Comment