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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL 7 Wierd table index problem

Status
Not open for further replies.

chrismilnenaq

Technical User
Joined
Dec 29, 2001
Messages
3
Location
CA
Hello,
My company has been having problems with MS SQL 7. We are using W2K SP2 with SQL 7 SP3 on both machines. The problem is we dts a table to the backup server and after a few days of delete and insert statements the table becomes corrupt. We do a select into statement and try to create an index but the index says duplicate keys exist. The problem with that is the source database has primary keys on the first and second columns and so does the destination table. I try to run a series of statements to delete the duplicate rows and it does. But when trying to create an index again the same duplicate row error comes up again. The error is not on the same rows though. If I try to create an index it will give an error on say row 878 but the next time without deleting any duplicates it will give me an error on row 9323. I'm in a loop of deleting duplicates and trying to create the index. I've tried so many variations with obviously no success. I'd appreciate your help.
Thanks in advance.

Chris
chris@naq.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top