Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i unfortunately deleted the data from USerinfo table.can i get back the data using rollback in sql server 2008
Posted
Updated 13-Apr-16 21:00pm

No.
ROLLBACK is used with a TRANSACTION only - you start a transaction, and either commit it after making changes or roll it back if there is a problem. You cannot roll back without an active uncommitted transaction on the same connection.

The best way is to restore from your most recent backup.
If you don't have backups, then you are probably in a world of pain. Some of these may be able to help you: restore deleted data sql server[^] - but I'd look very carefully before trying any as you may make the problem worse, not better. Either way, you are talking about a lot of work...
 
Share this answer
 
v2
The best option is restore database to a most recent time.
Refer this-
How to: Restore to a Point in Time (SQL Server Management Studio)[^]
Adn this too might help you-
SQL SERVER – How to Roll Back SQL Server Database Changes[^]

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900