patternsqlMinor
SQL Server 2012 Managment Studio not saving auto recovery files
Viewed 0 times
2012sqlautosavingrecoveryfilesstudioservermanagmentnot
Problem
I tried to go to
But it doesn't save any auto recover files (I searched inside my user folder for
I searched the registry to see if something was changed manually in
Tools > Environment > AutoRecover. - The check box of save autorecover is checked.
- Save every "5" minutes.
- Keep autorecover info for: 7 days.
But it doesn't save any auto recover files (I searched inside my user folder for
*.sql), and doesn't suggest to auto recover when the Management Studio closes by a power down. I searched the registry to see if something was changed manually in
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server but only found one key: CustomerFeed.Solution
According to AutoRecover information is not saved, SSMS 2012 only saves recovery files for queries that have been previously saved (which has led to some complaints). Files that have not been saved seem to get dumped in C:\Users\%USERNAME%\AppData\Local\Temp.
So you can check:
Personally I use TFS for version control on my queries and save them before every run. I've lost a fair number of queries in SSMS so I tend to be very careful.
If you can't find them on disk, there is a way to recover queries from the procedure cache as long as you catch them before they get pushed out of the cache. See also Execution Plan Caching and Reuse.
So you can check:
- C:\Users\%USERNAME%\Documents\SQL Server Management Studio
- C:\Users\%USERNAME%\AppData\Local\Temp
Personally I use TFS for version control on my queries and save them before every run. I've lost a fair number of queries in SSMS so I tend to be very careful.
If you can't find them on disk, there is a way to recover queries from the procedure cache as long as you catch them before they get pushed out of the cache. See also Execution Plan Caching and Reuse.
Context
StackExchange Database Administrators Q#57268, answer score: 6
Revisions (0)
No revisions yet.