Created
September 20, 2017 12:06
-
-
Save AshFlaw/09681d65a01529e72b660fe0204637bb to your computer and use it in GitHub Desktop.
Set a given DB back to multi user mode when locked by a given SPID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill <SPID> | |
USE [master] | |
ALTER DATABASE <DBName> | |
SET MULTI_USER | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment