Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The list of current users
Message
From
31/01/2003 08:53:23
 
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00747552
Message ID:
00747628
Views:
16
Yes. If you run sp_lock, you'll see that each connection has a SHARED DATABASE lock on the database that the connection is within the context of. You'll have to query the master..syslockinfo table and only pull those locks.

-Mike

>Hi All.
>Is there a way to obtain the list of users who currently USE a certain database?
>We run MS SQL 2000.
>Thanks
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform