Solved

running SINGLE_USER from master database- does it include you?

Posted on 2009-07-01
4
175 Views
Last Modified: 2012-05-07
When we run SINGLE_USER command for a database from the master database, does it give the chance for another process to connect and become the single user connected?

I guess when you run that from that database itself, it will assume that you are the only user.

The purpose to do this is to do a restore of the database(so all the users are gone). that is why I am thinking of running it from the master DB; but wondering if anyone else will be able to connect before the restore begins.

Thanks.
0
Comment
Question by:anushahanna
  • 3
4 Comments
 
LVL 46

Accepted Solution

by:
tbsgadi earned 470 total points
ID: 24753328
Hi anushahanna,

Have a look at the following:
http://www.dev30.com/?tag=/single_user

Good Luck!

Gary
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24753355
0
 
LVL 6

Author Comment

by:anushahanna
ID: 24753429
tbsgadi,
It does not tell specifically in the articles, but I assume, that even when you run the command from master DB, it considers you as the only user, and thus killing all other connections?

Thanks
0
 
LVL 46

Expert Comment

by:tbsgadi
ID: 24753445
Exactly
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Confronted with some SQL you don't know can be a daunting task. It can be even more daunting if that SQL carries some of the old secret codes used in the Ye Olde query syntax, such as: (+)     as used in Oracle;     *=     =*    as used in Sybase …
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question