Data updation issues in a SQL Server table

Tags:
SQL Server
SQL Server database
SQL Server tables
I have accidentally updated all data in a SQL Server table according to one data source, and now all my data is a copy of that data. How can I make a command to allow all data in that table to search for other data and update, according to another reference table?

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you have a primary key in your table that is messed up that corresponds to a value in the other table then yes you can.

You may want to look a Lumigents Log Explorer and simply roll back the incorrect statement (will only work if your database is in full recovery mode).

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: