To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Miscellaneous > Ask an Expert

Ask an Expert Ask our SQL experts the tough questions that have you stumped. Members are limited to one question a week, so ask your questions wisely!

Reply Post New Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-10-2005, 09:25 PM
rmtiptoes rmtiptoes is offline
Registered User
 
Join Date: Nov 2005
Posts: 2
DTS-Cannot Insert Duplicate Key Row - EOF?

I continue to get the the following error when importing a CVS file into SqlServer2000:

"cannot insert duplicate key row in object 'table1" with unique index 'table1_ndx'.

I have looked at the records and there are no duplicates. No matter how many rows I test, I continue to get this error after the last row. Is the problem an EOF indicator? Can anyone tell me what the EOF for a CVS is? I would really appreciate it. I have tried everything I know.
Reply With Quote
  #2  
Old 11-11-2005, 10:53 AM
MAK's Avatar
MAK MAK is offline
Experts
 
Join Date: Sep 2002
Location: Fantasy
Posts: 4,254
Refer what column participate in your unique index. It may be a composite column.
Reply With Quote
  #3  
Old 11-11-2005, 01:22 PM
skhanal skhanal is offline
Experts
 
Join Date: Nov 2002
Location: New Jersey, USA
Posts: 3,644
It is not the row that is duplicate, it is the unique key. Easy way to check this is open the CSV file in Excel and order by columns in table1_ndx index and see if there are any dupicates in those columns.
Reply With Quote
  #4  
Old 11-11-2005, 01:26 PM
rmtiptoes rmtiptoes is offline
Registered User
 
Join Date: Nov 2005
Posts: 2
'workorderid_ndx'. It can be sequentially generated but I am entering it. It is an interger
Reply With Quote
  #5  
Old 11-11-2005, 02:36 PM
rmiao rmiao is offline
Moderator
 
Join Date: Sep 2002
Posts: 5,603
If it's identity column, have to set indentity_insert on to enter value manually.
Reply With Quote
Reply Post New Thread

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:01 PM.


DatabaseJournal Recent Articles


 » A Guide to Microsoft SQL Server Replication

 » Introduction to SQL Server Proactive Caching

 » Redmond exploits MySQL uncertainty

 » Oracle Launches Oracle Global Trade Manage...

 » SQL Server 2008 RTM Support Ends April 13,...

Search Database Journal:
 







Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.