How to insert value into IDENTITY column?
If you will try to insert the value into Identity column you will get the one of the below error. Error 1: Msg 544, Level 16, State 1, Line 1 Cannot insert explicit value for identity column in table...
View ArticlePrimary Key, Unique Key Constraints – Clustered Index and Non Clustered Index
You can use the below script to create the Primary Key on the already existing tables. Primary key enforces a uniqueness in the column and created the clustered index as default. Primary key will not...
View ArticleScript to Create Foreign Key on the Compound Primary Key
Compound Primary key is a primary key which is created on more than one column. Now the questions is how to create the foreign key for the compound primary key where it references more than one column....
View Article