Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Relational Databases
Expertise: Beginner
Feb 1, 1999

Error When Performing Inserts on SQL Server

When inserting data into a table that has an identity column that is also the key, the following error occurs: Non-Blob column in table is required to perform operation. I have tried to set break points to see what is happening, but I haven't been able to find a point in the code where it breaks. The same code worked on this table before there was an ID column that was the identity column and the key.

If you're working with a SQL Server table, then you're going to have that problem. We experienced that same problem when performing inserts on tables that have identity columns. Your best bet is to remove the identity flag from your table. There's a way to do this in SQL Server, but I'm not sure how. Barring that, you'd best put a SELECT INTO into a new table then re-key it.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date