Solved

running SINGLE_USER from master database- does it include you?

Posted on 2009-07-01
4
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 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