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

If we delete pack Spec what will be the status of pack Body ?

1444


What is unique key constraint?

1001


How can I add Reporting Services reports to my application?

127


How many types of stored procedures are there in sql server?

968


Explain table valued parameters in sql server? Why tvp used?

979


What is the simplest way to create a new database in ms sql server?

974


What is the difference between index seek vs. Index scan?

982


Determine when an index is appropriate?

1025


How to update values in a table with update statements in ms sql server?

971


What are key, name and value columns of an attribute? : sql server analysis services, ssas

961


What is an execution plan?

1074


how you can list all the tables in a database?

978


What is single-user mode?

876


What is the Difference Between Primary and Foreign Key?

966


What triggers long term care?

1003