Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging off users Programmatically...

Status
Not open for further replies.

AWEinCA

Programmer
Oct 18, 2000
35
US
Is there a way to disconnect all currently connected users through a stored procedure except the connection that called the stored procedure?

[sig][/sig]
 
You could run sp_who, then loop through the results using KILL to kill the connections, but not KILLing @@spid. [sig]<p>Robert Bradley<br><a href=mailto: > </a><br><a href= - Visual FoxPro Development</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top