How to regain a unsaved Tab in Sql Server

  • Hi,

    I have unfortunately closed a Unsaved tab with a long Stored procedure without saving the Tab.IT asked me before closing the tab whether to save or not and i accidentally clicked NO.

    Now is there a possibility of regaining that tab or the data in that tab...

    Please guide.

  • if you're lucky enough, you should find your file somewhere in

    C:\Users\[your_user_name]\Documents\SQL Server Management Studio\Backup Files\Solution1

    Good luck!

    -- Gianluca Sartori

  • Except for what Gianluca has posted, you're in trouble. However, going forward, you might try getting a copy of this tool from Red Gate. It can help with exactly this solution. It's free.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Another good add-on is the SSMS Tool Pack - Its Free and available Here[/url]

    ==========================================================================================================================
    A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila. Mitch Ratcliffe

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply