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 Search this Thread Rate Thread Display Modes
  #1  
Old 11-10-2005, 10: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, 11:53 AM
MAK's Avatar
MAK MAK is offline
Experts
 
Join Date: Sep 2002
Location: Fantasy
Posts: 4,207
Refer what column participate in your unique index. It may be a composite column.
__________________
http://www.mssqlengineering.com
Reply With Quote
  #3  
Old 11-11-2005, 02:22 PM
skhanal skhanal is online now
Experts
 
Join Date: Nov 2002
Location: New Jersey, USA
Posts: 3,369
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, 02: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, 03:36 PM
rmiao rmiao is offline
Moderator
 
Join Date: Sep 2002
Posts: 5,080
If it's identity column, have to set indentity_insert on to enter value manually.
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 12:44 PM.


DatabaseJournal Recent Articles


 » Searching and Sorting Strings in Oracle

 » Preparing To Upgrade Access Tables to SQL ...

 » Sun Expands MySQL With Closed Source

 » Microsoft Demos New SQL Server Features at...

 » Wipro and Oracle Launch First Joint Innova...

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

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