Users Logged In

Is there a way in 2005 to tell what user is logged into what database
on the SQL Server?
thanks,
Scott
RogueIT [ Fr, 28 September 2007 18:25 ] [ ID #1831518 ]

Re: Users Logged In

Management -> Activity Monitor is my first guess.

Cheers,
Jason Lepack

On Sep 28, 12:25 pm, RogueIT <Scott.T.Holl... [at] gmail.com> wrote:
> Is there a way in 2005 to tell what user is logged into what database
> on the SQL Server?
> thanks,
> Scott
jlepack [ Fr, 28 September 2007 18:52 ] [ ID #1831519 ]

Re: Users Logged In

On Fri, 28 Sep 2007 16:25:41 -0000, RogueIT
<Scott.T.Holland [at] gmail.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
Roy Harvey [ Fr, 28 September 2007 20:42 ] [ ID #1831520 ]

Re: Users Logged In

On Sep 28, 2:42 pm, "Roy Harvey (SQL Server MVP)"
<roy_har... [at] snet.net> wrote:
> On Fri, 28 Sep 2007 16:25:41 -0000, RogueIT
>
> <Scott.T.Holl... [at] gmail.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...
RogueIT [ Fr, 28 September 2007 20:52 ] [ ID #1831521 ]
Datenbanken » comp.databases.ms-sqlserver » Users Logged In

Vorheriges Thema: Partition Optimization
Nächstes Thema: Comparing two tables