Created
September 5, 2009 19:38
-
-
Save agross/181495 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/src/Tarantino.Core/DatabaseManager/SqlFiles/DropConnections.sql b/src/Tarantino.Core/DatabaseManager/SqlFiles/DropConnections.sql | |
index 46c7f7f..96fd0e0 100644 | |
--- a/src/Tarantino.Core/DatabaseManager/SqlFiles/DropConnections.sql | |
+++ b/src/Tarantino.Core/DatabaseManager/SqlFiles/DropConnections.sql | |
@@ -15,6 +15,7 @@ SELECT | |
spid | |
FROM Master.dbo.SYSPROCESSES | |
WHERE dbid IN (SELECT dbid FROM Master.dbo.SYSDATABASES WHERE name = '||DatabaseName||') | |
+ AND hostprocess <> '' | |
AND spid <> @@SPID | |
SET @x = (SELECT MIN(nid) FROM #LIVE_SPIDS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment