Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I just want to say how much I value your site. I hope the good work keeps up there. It's really helped me..."

Geography

Where in the world do Tek-Tips members come from?
seaport (MIS)
27 Mar 03 16:06
How do I disconnect one user from one database? and how do I disconnect all users from one database so I can enable single user option to this database?

Thanks in advance.

seaport
tlbroadbent (MIS)
27 Mar 03 16:18

You can get a script at the following link.

Quickly Disconnecting Users
http://www.swynk.com/friends/knight/killusers.asp

If you want to get the best answer for your question read FAQ183-874 and FAQ183-3179.
Terry L. Broadbent - DBA
SQL Server Page: http://tlbroadbent.home.attbi.com/sql/sql_articles.htm

Helpful Member!(2)  seaport (MIS)
28 Mar 03 15:33
Thanks, Terry,

I accidentally found an easy way to accomplish the job. In the enterprise manager, I click the menu item to detach the database. In the confirmation box, there is a button to disconnect all users. I can use this button.

Of course I do not have to detach the database and just click "Cancel" after I disconnect all users.

seaport

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close