anonim1
Computer
- Dec 10, 2004
- 2
Hello, I have the following problem:
1. I have a MS SQL 2000 database with a table of user accounts called tbl_User.
2. A faulty script was run on the data in the table and, it deleted each user's first and last name.
3. I was able to reconstruct the data and have created another table called tbl_UserFixed with the correct data.
4. Being new to SQL, I tried to delete all of the records in tbl_User and insert the correct records from tbl_UserFixed. However, this failed due to the table having constraints/dependencies.
5. My next idea was to rename tbl_User to tbl_UserOld and then rename tbl_UserFixed to tbl_User. However, when I did this in a test database, I noticed that the dependencies were not inherited.
6. I've tried using DTS, but I was unsuccessful.
7. What is the simplest way to accomplish this task? I need to fix this ASAP!
Thank you in advance.
1. I have a MS SQL 2000 database with a table of user accounts called tbl_User.
2. A faulty script was run on the data in the table and, it deleted each user's first and last name.
3. I was able to reconstruct the data and have created another table called tbl_UserFixed with the correct data.
4. Being new to SQL, I tried to delete all of the records in tbl_User and insert the correct records from tbl_UserFixed. However, this failed due to the table having constraints/dependencies.
5. My next idea was to rename tbl_User to tbl_UserOld and then rename tbl_UserFixed to tbl_User. However, when I did this in a test database, I noticed that the dependencies were not inherited.
6. I've tried using DTS, but I was unsuccessful.
7. What is the simplest way to accomplish this task? I need to fix this ASAP!
Thank you in advance.