Tuesday, May 10, 2011

Error:


Error Message: "Cannot insert the value NULL into column; column does not allow nulls"

The code, I have written, tries to insert NULL into column, which does not allow nulls, and column is a primary key one.
Solution:
- set up "Data type" as "int" for the column
- set up Identity Specification to Yes (see image)
- test the code

No comments:

Post a Comment