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
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