Where does SSMS put queries before they've been saved?
Where does SQL Server Management Studio put its temp queries?
dir $env:LOCALAPPDATA\Temp\~vs*.sql
Where does SQL Server Management Studio put its temp queries?
dir $env:LOCALAPPDATA\Temp\~vs*.sql