dbTalk Databases Forums  

Users Logged In

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Users Logged In in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RogueIT
 
Posts: n/a

Default Users Logged In - 09-28-2007 , 11:25 AM






Is there a way in 2005 to tell what user is logged into what database
on the SQL Server?
thanks,
Scott


Reply With Quote
  #2  
Old   
Jason Lepack
 
Posts: n/a

Default Re: Users Logged In - 09-28-2007 , 11:52 AM






Management -> Activity Monitor is my first guess.

Cheers,
Jason Lepack

On Sep 28, 12:25 pm, RogueIT <Scott.T.Holl... (AT) gmail (DOT) com> wrote:
Quote:
Is there a way in 2005 to tell what user is logged into what database
on the SQL Server?
thanks,
Scott



Reply With Quote
  #3  
Old   
Roy Harvey (SQL Server MVP)
 
Posts: n/a

Default Re: Users Logged In - 09-28-2007 , 01:42 PM



On Fri, 28 Sep 2007 16:25:41 -0000, RogueIT
<Scott.T.Holland (AT) gmail (DOT) com> wrote:

Quote:
Is there a way in 2005 to tell what user is logged into what database
on the SQL Server?
thanks,
Scott
One way:

EXEC sp_who

Be aware that users are not really logged in to a database. Each user
who is logged in to the server is associated with a default database,
and anything they execute that does not have an explicit database
qualifier references that database. But there is nothing that says a
user defaulting to database Foo could not querying database Bar, or
any other database on the system.

Roy Harvey
Beacon Falls, CT


Reply With Quote
  #4  
Old   
RogueIT
 
Posts: n/a

Default Re: Users Logged In - 09-28-2007 , 01:52 PM



On Sep 28, 2:42 pm, "Roy Harvey (SQL Server MVP)"
<roy_har... (AT) snet (DOT) net> wrote:
Quote:
On Fri, 28 Sep 2007 16:25:41 -0000, RogueIT

Scott.T.Holl... (AT) gmail (DOT) com> wrote:
Is there a way in 2005 to tell what user is logged into what database
on the SQL Server?
thanks,
Scott

One way:

EXEC sp_who

Be aware that users are not really logged in to a database. Each user
who is logged in to the server is associated with a default database,
and anything they execute that does not have an explicit database
qualifier references that database. But there is nothing that says a
user defaulting to database Foo could not querying database Bar, or
any other database on the system.

Roy Harvey
Beacon Falls, CT
thank you both...



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.