January 16, 2012 at 5:37 am
without any auditing already in place, all you can do is prepare for it to happen again in the future.
http://www.ssmstoolspack.com/ has the free SSMS toolpack, and its "SQL History" feature has saved me once, in a similar situation: long script of code i was working on wasn't saved, then accidentally closed the window on it., but I was able to go to the history and recover it a couple of days later.
Lowell
January 17, 2012 at 4:59 am
Queries don't stay available in the cache forever. If you ran it once and it had a low cost, chances are if there's any memory pressure on the system at all, it aged out of cache and it's gone.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 2 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply