[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 980
  • Last Modified:

ODBC - Insert On A linked Table Failed

HI

i cant understand what is wrong so please help ...

i have an access 2003 frontend that is linked through to a SQL server backend

for some reason i can not append some records to a table. (others work perfecty well)

the message i get when trying to append is:
ODBC --Insert on a linked table 'tblQuality_Audit_Items' failed
[Microsoft][ODBC SQL Server Driver][SQL_Server] Explicit value must be specified for indentity column in table 'Table1'
when IDENTITY_INSERT is set to ON. (#545)

now even if i go straight to the table in access i try to insert a record manually i get the same message. however if i try the same in SQL server i get no message
I have A Indentiy column called ControlNumber. all other fields allow nulls

any ideas?
thanks

ozgirl
0
ozgirl
Asked:
ozgirl
1 Solution
 
Patrick MatthewsCommented:
Hi ozgirl,

Apparently, your SQL db has IDENTITY_INSERT set to ON.

From SQL Query Analyzer, run:

    SET IDENTITY_INSERT tblQuality_Audit_Items OFF

Generally speaking, you should never be trying to insert into an identity column.  Defeats the whole purpose of
using an identity column, really.

Regards,

Patrick
0
 
ozgirlAuthor Commented:
thanks Patrick

i have just looked at my append query and doh.....

all working well now

thanks
ozgirl
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now