11-03-2009 10:21 AM
I am new at databases. I have figured out how to talk and write but now I have a new problem. I have an ID field in the SQL database that populates automatically. It shows up on the columns therefore I have to include the field on the write. But everytime I include the ID field I get this error
Possible reason(s):
Exception occured in Microsoft OLE DB Provider for SQL Server: Cannot insert explicit value for identity column in table 'data' when IDENTITY_INSERT is set to OFF. in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlib:DB Tools Insert Data.vi->TS114Print.vi
Any idea on how to get around this? Most of the posting deal with invalid characters in the names I am sure that is not the case.
Please help
Solved! Go to Solution.
11-03-2009 10:34 AM
Audra wrote:Any idea on how to get around this?
11-03-2009 10:38 AM
11-03-2009 11:21 AM
11-03-2009 11:23 AM
11-03-2009 11:42 AM
I don't use the toolkit and probably never will but you can certainly do an INSERT INTO command without using an id column. Use the lower level DB Tools Execute Query.
11-03-2009 12:56 PM