I know this is an old thread but for anyone looking to retrieve a script after ssms crashes do the following
- Open Local Disk (C):
- Open users Folder
- Find the folder relevant for your username and open it
- Click the Documents file
- Click the Visual Studio folder or click Backup Files Folder if visible
- Click the Backup Files Folder
- Open Solution1 Folder
- Any recovered temporary
files will be here. The files will end with vs followed by a number
such as vs9E61
- Open the files and check for your lost code.
Hope that helps. Those exact steps have just worked for me. im using Sql
server Express 2017