Question

I have a Database,Which is in Single user mode ,If i want to access a tables in the database i will be changing in the properties from single to multiuser.How can i make the Database multi user permenantly?.

Was it helpful?

Solution

ALTER DATABASE [MyDB] SET MULTI_USER

If it throws an error like user is already connected to it, select 'master' db in the dropdown and try it that way.

If that doesn't do it, use sp_who to find what spid is accessing the DB and kill it.

OTHER TIPS

If you want to do it in SSMS object explorer.

Right click on your database. Go to properties > options. Scroll to the bottom and find "Restrict Access" and change it to multi_user. Click ok.

Just an alternative to query window. Both do the same the same.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top