When it takes long time to make a database offline try with following sql.
If it does not help, kill the session.
First find out the spid using following command.
ALTER DATABASE <dbname> SET OFFLINE WITH ROLLBACK IMMEDIATE
If it does not help, kill the session.
First find out the spid using following command.
EXEC sp_who2
KILL <SPID>
No comments:
Post a Comment