|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 10:56 AM
Points: 14,
Visits: 147
|
|
Hello, someone executed accidentally old script in a database , have any way to get back date procedure script . if have, please reply me.
Thanks
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 3:43 AM
Points: 4,804,
Visits: 8,091
|
|
Restore a backup copy of the database and extract the correct procedure from that copy. You could set up a DDL trigger to capture this kind of changes into a table. Unfortunately, setting it up now that the damage is done won't help, but will save the pain next time it happens.
Get your two-cent-answer quickly The Spaghetti DBA
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, December 06, 2012 7:47 AM
Points: 9,
Visits: 37
|
|
| Restore the database to a test server (not to the same server that the database already exists); extract the stored procedure code and permissions on the stored procedure; put the restored database offline or detach; run the extracted scripts on the required database and grant require permissions.
|
|
|
|