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 is role playing dimension with two examples? : sql server analysis services, ssas

1052


What is the difference between grant and with grant while giving permissions to the user?

1025


How to provide login information for a new odbc dsn?

1094


How to scale out a federation by Sql statement?

118


What the different topologies in which replication can be configured?

1142


Do you have any idea about the tcl commands?

1013


What are the differences between stored procedure and the dynamic sql?

1137


What are binary string data types in ms sql server?

1390


Explain Geography datatype in SQL Server

1190


What is the difference between DATETIME2 and DATETIME?

1127


Why do we use stored procedures in sql server?

997


What are the instances when triggers are appropriate?

1019


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

1081


What is the purpose of the tempdb database?

1044


What gets stored inside msdb database?

1309