C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
4
Reply
Can you recover truncated data in SQL SERVER?
Rohit Kumar
13y
9.9k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
While database is in full recovery mode, it can rollback any changes done by DELETE using Log files. TRUNCATE can not be rolled back using log files in full recovery mode.DELETE and TRUNCATE both can be rolled back when surrounded by TRANSACTION if the current session is not closed. If TRUNCATE is written in Query Editor surrounded by TRANSACTION and if session is closed, it can not be rolled back but DELETE can be rolled back.
Naveen Bisht
12y
0
Email me your complete system details
Malik Murad Al Ali
13y
0
Possible when session is not closed.. If Session is closed means it not. BEGIN TRAN TRUNCATE TABLE TableName -- Following SELECT will return TestTable empty SELECT * FROM TableName -- Following SELECT will return TestTable with original data ROLLBACK
sarath kumar
13y
0
we can deallocate the truncate data in sql server
swayanajyoti pati
13y
0
Can you recover deleted data in a table in SQL SERVER?
What is the difference between Truncate and Delete command in SQL SERVER?
Message