Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Auto Save / Auto recover in Management Studio?


Auto Save / Auto recover in Management Studio?

Author
Message
Rob-350472
Rob-350472
Old Hand
Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)

Group: General Forum Members
Points: 329 Visits: 684
I have come in today to find my PC rebooted, I suspect due to windows updates, (it decides to reboot with no warning sometimes I swear)

Anyhow, I left management studio open with about 6 queries on the go, some of which were not saved, on the whole its no biggy today, as the important ones were saved, but it does mean some extra work to get back to where I was, kinda annoying.

Is there no auto save / auto recover facility - I just opened Mgnt studio and it just opened as usual, no 'recover files' prompt or anything - I looked in the options for ages and didn't find anything, I also looked on the books online, again nothing. I googled for it and found someone who had recovered documents...

And, here's the coolest part, I was working on some SQL files at the exact time of the disaster and well, I went to the \Documents and Settings\username\My Documents\SQL Server Management Studio\Backup Files\ directory and found a directory of Solution1. In it were 3 files with similarly ugly names (~AutoRecover.~vsC.sql, ~AutoRecover.~vsC.sql~RF93d469.TMP, etc...) and the AutoRecover file was 2KB (the others were 0KB). Anyway, I opened up the file and viola! I actually recovered the .sql script I was working on at the time I dropped my laptop (well, I still blame this on Paul cause he made me lean over to talk to him and this ultimately pushed my laptop off the crappy airline table Wink Wink Wink Smile.


So I guess it must be possible, I just can't find the options anywhere, and I don't have the directory she mentions either :/

(Taken from this page: http://www.sqlskills.com/blogs/kimberly/2008/05/09/WhenDidYouLastBackupYourHomepersonallesscriticalSystemIsItReallyLesscritical.aspx )
Rob-350472
Rob-350472
Old Hand
Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)

Group: General Forum Members
Points: 329 Visits: 684
In a bizarre twist of fate Management Studio decided to die around 30mins after this post, and then created the 'backup' folder in the location mentioned in the post above, and low and behold when it started it up again there was a prompt to recover files!

Why it didn't do this after Vista killed it for a Windows Update I don't know, but at least in a power failure or a crash it looks to work...
ahsansharjeel
ahsansharjeel
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 80
SSMS (SQL Server Management Studio) do not provide any feature to turn off Auto Recovery/Auto Save option, but this will include in the future versions. Also, Microsoft will not encorporate this feature in upcoming Service Packs. Please go through

http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=125840

Regards

Muhammad Sharjeel Ahsan
lconsiglio
lconsiglio
SSC-Enthusiastic
SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)SSC-Enthusiastic (175 reputation)

Group: General Forum Members
Points: 175 Visits: 279
OMG!!!! That so saved my bacon. That directory;
C:\Documents and Settings\Your Name Here\My Documents\SQL Server Management Studio\Backup Files\Solution1, contains a ~blah.sql file for the window that you were working at the time of the unfortunate event.

Still no replacement for saving your scripts but....



Aharon Keves
Aharon Keves
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 172
The same thing happened to me and I followed your instructions and found the auto-saved files. Saved me a lot of rewriting. Thanks!
vdeepti44
vdeepti44
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 13
I faced the same problem and I followed the steps above. I could recover my files !! Helped me a lot ! Thank you... :-)
martin 72355
martin 72355
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 0
thank you VERY much for posting the solution mentioned above. saved my a** at work today :-)
henrik staun poulsen
henrik staun poulsen
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1831 Visits: 1210
thank you very much for this post.

Best regards,
Henrik Staun Poulsen
www.stovi.com



Edward Sun
Edward Sun
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 226
Saved my day!!! Cannot thank enough as it's late in Friday afternoon...
jscarlatelli
jscarlatelli
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 61
Thank you so much! My PC rebooted during lunch and I would have lost hours of work...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search