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

Which Model uses the SET concept

743


Can truncate be rolled back?

701


How to list all field names in the result set using mssql_field_name()?

672


How can we call UDF(User Define Function) using C# code in ASP.net ?

6359


What is key attribute?

698






Explain user defined views?

742


Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1755


Why are you getting errors when creating a new odbc dsn?

803


What are the difficulties faced in cube development? : sql server analysis services, ssas

793


How to rename an existing column with sql server management studio?

678


What are the differences between stored procedure and view in sql server?

835


Find columns used in stored procedure?

702


Why we should not use triggers?

683


What are the options which must be set to allow the usage of optimistic models?

701


How do you check sql server is up and running?

690