Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do we rollback the table data in SQL Server

Answer Posted / umesh roy

Above code spelling are wrong on save Transaction
correct code are below which is executeable

begin transaction
save transaction t
delete from tablename where id=2
select * from tablename
------------------------------------------------------
the value id=2 will be deleted in the tablename
-------------------------------------------------------
rollback transaction t
select * from tablename

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which format does an image save in SQL Server database ?

1001


Do you know clustered and non-clustered index?

979


What are the different types of collation sensitivity in sql server?

1113


How to use old values to define new values in update statements in ms sql server?

1266


What is a View ? Can we insert, Update and delete a view?

995


What is the purpose of self join?

974


What is pivot and unpivot?

1013


What are the pre-defined functions in the sql server?

1109


Give me a SQL Query to find out the second largest company?

1165


what is database replication? : Sql server database administration

1062


What are sql azure firewall rules?

106


What does top operator do?

1020


What is msdb database? : SQL Server Architecture

1130


What is difference between oltp and olap?

1049


What are the restraints imposed on the table design by a merge replication?

1038