0

I have accidentally executed a procedure without where clause. Can I get the data back.

The backup of database was taken a week before.

Is there any way to get the data back by using rollback.

I am using SQL Server Management Studio 2012

Ammar Bukhari
  • 33
  • 1
  • 14

2 Answers2

4

what is your database recovery model? if recovery model is full you can restore database with transaction log backup. before restoe you should execute backup from your database.

Hadi
  • 443
  • 3
  • 15
  • please check the below link and restore your database to a point in time https://technet.microsoft.com/en-us/library/ms190982(v=sql.105).aspx – Hadi Aug 27 '15 at 11:38
1

Taken from comments. When your database is in full recovery mode, you can restore your database back to a point in time (thanks to transaction logs). Therefore, going back before you accidentally executed your sql shouldn't be a problem. Here is nice answer how to do that.

Community
  • 1
  • 1
Ivan Sivak
  • 7,178
  • 3
  • 36
  • 42