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.
PRINT '[dbo].[Customers] table has a primary key.
MSDEVBUILD - Community of Microsoft AI, Azure and Xamarin by Suthahar - Solution Architect for Microsoft AI, Azure, Xamarin | Tech Author and Speaker
This blog provides an in-depth explanation of object and dynamic types in C#. Object Type 1. Overview object ...
0 Comments