Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop a single database in an sql instance?

For example i have 15 database in my instance how can i stop only one of them?. I only know is how to stop an instance... Thanks.

like image 405
Dave Avatar asked Sep 01 '25 22:09

Dave


1 Answers

You can set it Offline in SSMS.

Right click -> Task -> Take Offline

You can set database to Restricted User Mode:

ALTER DATABASE database-name SET RESTRICTED_USER

but I'm not sure this works on SQL Server 2008

like image 87
McNets Avatar answered Sep 03 '25 13:09

McNets