Can we rollback records deleted by a truncate statement?

Answer Posted / anand

yes,we can ROLLBACK records deleted by truncate if we had
executed BEGIN TRAN first
ex:

Begin Tran
truncate table tablename
ROLLBACK

with out "Begin Tran" you can not rollback

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain important index characteristics?

553


what type of index will get created after executing the above statement? : Sql server database administration

533


Where can you add custom error messages to sql server?

579


What happens if date-only values are provided as date and time literals?

538


Why use identity in sql server?

558






Explain what is analysis service repository?

534


After removing a table from database, what other related objects have to be dropped explicitly?

551


What is database replication?

574


What are the difference between clustered and a non-clustered index?

584


What programming language would you use to create embedded functions in ssrs?

122


What is the temp table?

543


Who is the owner of a schema in ms sql server?

544


What is trace flag in sql server?

519


What is executereader?

547


tell me what is blocking and how would you troubleshoot it? : Sql server database administration

481