SQL Server stored overwritten,ow can I recover/roll-back this store procedure to its original state..? -


database: sql server 2012 name of store procedure: dbo.sp_ins_output_str date overwritten: 2014-06-26 (yesterday)

i have sql server stored procedure thats overwritten accident , executed, how can recover/roll-back store procedure original state..?

there's no "undo button" per se, can using following method.

  1. restore database different location, recovering time prior alter being executed
  2. extract ddl of sp restored location
  3. alter current erroneous sp using ddl taken in step 2
  4. drop restored database
  5. feel heart rate decrease

though if have no backup, you're out of luck unless have cvs contains ddl.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -