Skip to main content
Post Closed as "Duplicate" by Aaron Bertrand
added 54 characters in body; edited tags
Source Link
ypercubeᵀᴹ
  • 98.7k
  • 13
  • 215
  • 305

select * from aa

update aa set City='chennai',LastName='vinoth';

ID FirstName LastName City 29 Abcrdrr vinoth chennai 1 John vinoth chennai 2 Joe vinoth chennai 35 raja vinoth chennai 38 Johsdfgn vinoth chennai

select * from aa

update aa set City='chennai',LastName='vinoth';

ID  FirstName  LastName  City
29  Abcrdrr    vinoth    chennai
1   John       vinoth    chennai
2   Joe        vinoth    chennai
35  raja       vinoth    chennai
38  Johsdfgn   vinoth    chennai

I amhave wrongly update my record Lastname,City column now iupdated Lastname, City columns in all the rows. Now I want to rollback old Table Record in Sql Server 2008 R2to the old table rows.

ThanksUsing SQL-Server 2008R2.

select * from aa

update aa set City='chennai',LastName='vinoth';

ID FirstName LastName City 29 Abcrdrr vinoth chennai 1 John vinoth chennai 2 Joe vinoth chennai 35 raja vinoth chennai 38 Johsdfgn vinoth chennai

I am wrongly update my record Lastname,City column now i want rollback old Table Record in Sql Server 2008 R2.

Thanks

select * from aa

update aa set City='chennai',LastName='vinoth';

ID  FirstName  LastName  City
29  Abcrdrr    vinoth    chennai
1   John       vinoth    chennai
2   Joe        vinoth    chennai
35  raja       vinoth    chennai
38  Johsdfgn   vinoth    chennai

I have wrongly updated Lastname, City columns in all the rows. Now I want to rollback to the old table rows.

Using SQL-Server 2008R2.

Source Link
Vinoth _S
  • 857
  • 8
  • 15
  • 24

How to rollback after wrong update statement in sql server 2008R2?

select * from aa

update aa set City='chennai',LastName='vinoth';

ID FirstName LastName City 29 Abcrdrr vinoth chennai 1 John vinoth chennai 2 Joe vinoth chennai 35 raja vinoth chennai 38 Johsdfgn vinoth chennai

I am wrongly update my record Lastname,City column now i want rollback old Table Record in Sql Server 2008 R2.

Thanks