Link to home
Start Free TrialLog in
Avatar of paulmcneil
paulmcneilFlag for United States of America

asked on

SQL Server column does not allow nulls

The following SQL Server command text raises the error "column does not allow nulls"

INSERT INTO dbo.tbl_PS_ScorecardTmp
                      (ScorecardID)
VALUES     (111)

The column Scorecard design does allow nulls. Why do I get the error? Thanks
SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There is another column in the table that is specified as "NOT NULL" in the table definition.

You need to add a value for any required column(s), for example:

INSERT INTO dbo.tbl_PS_ScorecardTmp
                      (ScorecardID, RequiredColumn1, RequiredColumn2)
VALUES     (111, 'A', 0)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial