Thread: Bulk insert
View Single Post
  #5 (permalink)  
Old March 3rd, 2004, 06:53 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

As I know also if I have a duplicate key it should be considered as error and it should be skipped and the statment should complete normally, I am testing it on a simple table with 2 columns integer(PK)and nvarchar(2), my statment is
"BULK INSERT test.dbo.[testingbulk]
   FROM 'c:\bulk.txt'
   WITH
      ( datafiletype = 'char',
         FIELDTERMINATOR = ',',
         maxerrors = 1000,
     KEEPIDENTITY
      )"

thanx,

Quote:
quote:Originally posted by joefawcett
 As I understand it MaxErrors only means the procedure carries on after errors, it doesn't let you break constraints. Can you show your BULK INSERT query and your source and target table structure?

--

Joe
Reply With Quote