HomeForum
Welcome, Guest

Cannot update identity column
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Cannot update identity column

Cannot update identity column 1 year, 3 months ago #1525

  • David
  • OFFLINE
  • Junior Boarder
  • Posts: 29
  • Karma: 0
Hello I am trying to load data into SQL Server 2008 and I am getting following errors in the execution log

Error 10/02/2011 3:54:36 PM 1, [Table=[db].[dbo].[Contract]] Update failed: 42000
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot update identity column 'ID'. 42000 [Microsoft][ODBC SQL Server
Driver][SQL Server]Statement(s) could not be prepared.

Any suggestions?

Dave

Re: Cannot update identity column 1 year, 3 months ago #1527

  • admin
  • NOW ONLINE
  • Moderator
  • Posts: 2191
  • Karma: 12
If you are using Ole DB or ODBC connection put
SET IDENTITY_INSERT table_name ON
Into sql before

If you are using MS Sql Server Connection

Open target connection properties and tick "keep identity"

Peter
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

If we compare to manual processing this program save more than 200 hours in month.

C Gandhi
Nesa-Canada

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top