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.
- restore database different location, recovering time prior alter being executed
- extract ddl of sp restored location
- alter current erroneous sp using ddl taken in step 2
- drop restored database
- feel heart rate decrease
though if have no backup, you're out of luck unless have cvs contains ddl.
Comments
Post a Comment