Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i have a sql server table that gets

Status
Not open for further replies.

cfrench

Programmer
Mar 3, 2003
23
0
0
US
i have a sql server table that gets updated every morning from a csv file outputted by our legacy program (our consultants do this - not very well). Occassionally their program malfunctions and picks up wrong dates causing my database to import duplicates from the csv.

What would be the best way to create a fail safe to prevent the importing of duplicates from csv?

Thanks.
 
How about defining a unique constraint on the field or combination of fields which makes the record unique.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top