Thread: Bulk insert
View Single Post
  #1 (permalink)  
Old March 3rd, 2004, 06:09 AM
deyakhatib deyakhatib is offline
Authorized User
Points: 41, Level: 1
Points: 41, Level: 1 Points: 41, Level: 1 Points: 41, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Amman, , Jordan.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to deyakhatib
Default Bulk insert

Hi all,
I am trying to use bulk insert and to overwrite the primary keys in the table(destination) with the ones in the text file (source), I am setting the MAxErrors option to 9999, but I am always getting the following error:
"Violation of PRIMARY KEY constraint 'PK_Testingbulk'. Cannot insert duplicate key in object 'Testingbulk'.
The statement has been terminated."

I dont want this statment to be cancelled even if there is errors, and i think maxerror option is the way to do that but its not working.

thanx in advance.
Regards,
Reply With Quote