Quantcast
Channel: SQL Server DBA
Viewing all articles
Browse latest Browse all 80

How to recover SSMS auto recover scripts after crash

$
0
0

Question: On my laptop - SQL server SSMS crashed a couple of days ago and I lost the scripts I was working on. Is it possible to recover those scripts?

Answer:

For SSMS 18,the files  can be found at this location:

C:\Users\YourUserName\Documents\Visual Studio 2017\Backup Files\Solution1

For SSMS 17, the files can be found at this location:

C:\Users\YourUserName\Documents\Visual Studio 2015\Backup Files\Solution1

 

There are also AutoRecover options you can configure on SSMS | Tools|Options|Environment|AutoRecover

1)Save AutoRecover information every: XX minutes

2)Keep AutoRecover information for: xx days

 

Autorecover

Read more on SSMS management 

SSMS Query Options – Discard results after execution

How to start SSMS as Administrator


Viewing all articles
Browse latest Browse all 80

Trending Articles