Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 single user mode

Author  Topic 

raul11
Starting Member

48 Posts

Posted - 2011-04-29 : 00:05:16
what is the query to check whether database is in single user mode from command prompt

raghuveer125
Constraint Violating Yak Guru

285 Posts

Posted - 2011-04-29 : 00:46:44
Sp_helpdb 'YourDatabaseName'

after running you can see in status column UserAccess=( your database status)

Raghu' S
Go to Top of Page

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2011-04-29 : 02:40:14
SELECT name,user_access,user_access_desc FROM sys.DATABASES

--------------------------
http://connectsql.blogspot.com/
Go to Top of Page
   

- Advertisement -