Recover unsaved SQL query scripts

前端 未结 14 1637
旧巷少年郎
旧巷少年郎 2020-12-07 06:55

How to recover the unsaved scripts if the SSMS crashes / unsaved tab gets accidentally closed?

14条回答
  •  抹茶落季
    2020-12-07 07:25

    I know this is an old thread but for anyone looking to retrieve a script after ssms crashes do the following

    1. Open Local Disk (C):
    2. Open users Folder
    3. Find the folder relevant for your username and open it
    4. Click the Documents file
    5. Click the Visual Studio folder or click Backup Files Folder if visible
    6. Click the Backup Files Folder
    7. Open Solution1 Folder
    8. Any recovered temporary files will be here. The files will end with vs followed by a number such as vs9E61
    9. 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

提交回复
热议问题