Created
December 13, 2018 14:29
-
-
Save IamADav/a07944cb764ba642b3b4f0bcc543176b to your computer and use it in GitHub Desktop.
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]; | |
DECLARE @kill varchar(8000) = ''; | |
SELECT @kill = @kill + 'kill ' + CONVERT(varchar(5), session_id) + ';' | |
FROM sys.dm_exec_sessions | |
WHERE database_id = db_id('ifrs17_database') | |
EXEC(@kill); | |
drop database ifrs17_database; | |
create database ifrs17_database; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment