Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Other SQL Server Topics / September 2007

Tip: Looking for answers? Try searching our database.

Users Logged In

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RogueIT - 28 Sep 2007 17:25 GMT
Is there a way in 2005 to tell what user is logged into what database
on the SQL Server?
thanks,
Scott
Jason Lepack - 28 Sep 2007 17:52 GMT
Management -> Activity Monitor is my first guess.

Cheers,
Jason Lepack

> Is there a way in 2005 to tell what user is logged into what database
> on the SQL Server?
> thanks,
> Scott
Roy Harvey (SQL Server MVP) - 28 Sep 2007 19:42 GMT
>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
RogueIT - 28 Sep 2007 19:52 GMT
On Sep 28, 2:42 pm, "Roy Harvey (SQL Server MVP)"
<roy_har...@snet.net> wrote:
> On Fri, 28 Sep 2007 16:25:41 -0000, RogueIT
>
[quoted text clipped - 17 lines]
> Roy Harvey
> Beacon Falls, CT

thank you both...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.