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 / elumalai.k

begin transaction
save transcation t
delete from tablename where id=2
select * from tablename
------------------------------------------------------
the value id=2 will be deleted in the tablename
-------------------------------------------------------
rollback transcation t
select * from tablename
---------------------------------------------------------
if u give rollback the deleted values will be seen again

Is This Answer Correct ?    22 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are advantages of ssrs or why we should use ssrs?

139


What is the full meaning of dml?

952


Where are sql server user names and passwords stored in sql server?

1093


What is the use of =,==,=== operators?

1013


What is difference between inner join and join?

1045


What are difference between Cluster index and Non-Cluster index?

1081


What is meant by dirty read?

996


Explain nested trigger in sql?

1080


What are pages and extents? : SQL Server Architecture

1017


What is failover clustering overview?

1090


Explain left outer join and right outer join?

1041


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

995


What is the current limitation of the size of SQL Azure DB?

127


Can you pass expressions to stored procedure parameters?

1038


Do you know what are acid properties of transaction?

960