[newbie][error] Cannot insert NULL values to identity column

  • I'm trying to pass values within an insert statement, however, I'm not sure what is the best way to pass the most appropriate value to the taskID_PK column bigint identity.

    An insert statement to the table returns the following error:

    Cannot insert the value NULL into column 'taskID_PK', table 'teamwiki.dbo.task'; column does not allow nulls. INSERT fails.\rThe statement has been terminated."

    :w00t:

    VS 2005 / ASP.NET 2.0

    SQL Server 2005 Express

  • Just don't specify the identity column in your insert statement.


    * Noel

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply