Solved

ODBC - Insert On A linked Table Failed

Posted on 2006-11-05
2
893 Views
Last Modified: 2012-08-13
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
Comment
Question by:ozgirl
2 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 17878709
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
 

Author Comment

by:ozgirl
ID: 17879042
thanks Patrick

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

all working well now

thanks
ozgirl
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question