Created
March 21, 2024 18:41
-
-
Save ststeiger/8890ea166d67f4aaf13c624ee3627c45 to your computer and use it in GitHub Desktop.
How to kick users from SQL-server
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
USE master | |
GO | |
ALTER DATABASE database_name SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
GO | |
ALTER DATABASE database_name SET MULTI_USER WITH ROLLBACK IMMEDIATE | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment