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
Do you know how to send email from database?
How to stop a loop early with break statements in ms sql server?
What are the various editions of sql server 2017 that are available in the market?
How to create and drop temp table in sql server?
I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?
what are the reporting service components in SSRS?
How can we determine what objects a user-defined function depends upon?
How to set database to be single_user in ms sql server?
What is the difference between count and distinct count?
What are the steps you must follow to hide sql server instances?
Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?
What is de-normalization and what are some of the examples of it?
Explain what is log shipping?
How to rename an existing table with the "sp_rename" stored procedure in ms sql server?
What is the concept of optimization?