Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 regarding No. of users in current session

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-04-27 : 08:01:57
prasad writes "what is the query to find the number of users in a database in the current session?"

nr
SQLTeam MVY

12543 Posts

Posted - 2005-04-27 : 15:58:41
not sure what you mean but
select count(*) from master..sysprocesses where dbid = db_id()

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -