Friday, 11 April 2014

Cannot insert the value NULL into column 'id'? ASP.Net

Hi Folks,
If you get the below error while being a fresher in ASP.net ...

Cannot insert the value NULL into column 'id'?


Then please add identity property to your primary key

[ID] [int] Not NULL IDENTITY(1,1),


check the below link for more clarification
http://stackoverflow.com/questions/10013313/why-is-sql-server-throwing-this-error-cannot-insert-the-value-null-into-column

No comments:

Post a Comment