Nov
01
01
SQl Server - Show active users / databases
Posted by jbjorkman on November 1, 2009 underDeprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/myfoto.se/jbits.se/blog/wp-includes/formatting.php on line 82
Uncategorized
To list active users and databases on your MS SQL Server you can use something like this:
select DB_NAME(dbid) as DB, loginame, hostname, login_time, status, program_name, cmd, hostprocess, net_address from master.dbo.sysprocesses order by DB,loginame
Add A Comment
You must be logged in to post a comment.