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
Read more on SSMS management