Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
An explicit value for the identity column in table 'supplier' can only be specified when a column list is used and IDENTITY_INSERT is ON.

when i enter a value in ID field
i need this field as primary key itself
how can i clear this error

pleas help me out
Posted

1 solution

When you set a column as Identity the value will be increased as +1 automatically.
you cannot insert ,update that column (value in that column is unique one).

If you want to insert,update value in an Identity column, then make that as a non identity one
or else
Set Identity_Insert as ON for that column
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900