SQL Server Management Studio: Reconnect query tab after database restore/lost connection
<p>I have several long queries in SQL Server Management Studio. If my connection is lost/broken (e. g. after Restore of the database), how can I reconnect my SQL query tab to the database? My context menu for the connection only contains deactivated items...</p>

<p>It is not too much work to copy everything, open a new SQL query tab on my database and paste it, but "smart" is something completely different.</p>