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

Can you name a few encryption mechanisms in sql server?

991


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

1247


What are the properties of the transaction?

1050


Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

128


Explain the properties of subqueries in sql server?

1137


What is an sql server agent?

1111


How to stop a loop early with break statements in ms sql server?

1069


How you can move data or databases between servers and databases in sql server?

1099


What is sparse columns of sql server 2008?

1099


What is always encrypted?

1054


Explain the functionalities that views support?

1162


What is the ‘fillfactor’?

1013


What objects does the fn_my_permissions function reports on? : sql server security

1080


What is raiseerror? What is raiseerror?

1193


How important do you consider cursors or while loops for a transactional database?

1009