Skip to main content
April 26, 2007
Question

Secutiry Message for SQL Server 2005 Express

  • April 26, 2007
  • 1 reply
  • 273 views
I'm getting the following message when I try to insert data into a single table using the <cfinsert> tag

[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][SQL Native Client][SQL Server]Cannot insert explicit value for identity column in table 'customer' when IDENTITY_INSERT is set to OFF.

What do I have to do to change this any help would be greatly appreciated

This topic has been closed for replies.

1 reply

Inspiring
April 26, 2007
Sounds like you're submitting a form field with the same name as the table's primary key (eg. form.CustomerId ).
So CFINSERT is trying to insert the primary key along with the other values. Thats probably not what you want since you're using an identity column.

Try removing the form field with the same name as the table's primary key and it should work.