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 the different topologies in which replication can be configured?

1082


Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?

1010


Which rendering formats are affected by the pagesize properties?

144


What is the significance of null value and why should we avoid permitting null values?

978


What is difference between materialized view and view?

905


How does clustered and non clustered index work?

916


Characterize join and name diverse sorts of joins?

963


List types of tables in SQL Azure?

126


Explain how would you store your query in an SSRS report or a Database server?

128


Explain about SQLOS?

995


What is field in algebra?

1025


Explain what stored procedure sp_replcounters is used for? : sql server replication

1499


What is hot add cpu in sql server 2008?

918


what is a transaction and what are acid properties? : Sql server database administration

1016


How is foreign key related to primary key?

964