Solved

ODBC - Insert On A linked Table Failed

Posted on 2006-11-05
2
848 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
Comment Utility
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
Comment Utility
thanks Patrick

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

all working well now

thanks
ozgirl
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now