0

I`ve altered a procedure without backup, now I want previous script back . Is there any way to get it again?

Sandeep
  • 843
  • 1
  • 9
  • 18
Anamika
  • 1
  • 1

1 Answers1

5

No, there isn't, not easily anyways. You could try looking at the transaction logs.

Without a backup or other place where you hold versions of the stored procedure, you can't get it back.

Check your test/dev systems - you may be lucky and a prior version may still be lingering somewhere.

In the future - keep all database scripts in source control so such issues can be avoided.

Community
  • 1
  • 1
Oded
  • 489,969
  • 99
  • 883
  • 1,009