Fast way to take DB offline/online


A fast way to kill all connections to a DB before restoring it.

ALTER DATABASE >
SET OFFLINE WITH ROLLBACK IMMEDIATE

ALTER DATABASE >
SET ONLINE

Comments

Popular posts from this blog

How to disable auto enabled flight key using KillSwitch

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking