Solved

running SINGLE_USER from master database- does it include you?

Posted on 2009-07-01
4
173 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now