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

D365FO Data management change tracking enable/disable not working

Displaying a value from a array field in EP

Table array field iteration