December 1, 2009 at 12:53 pm
Hi Folks
can someone tell me how I can find out what database is being connected to by a client or clients ?
i only know the client IP/Server name
i would like to know what databses(s) these connections are logging into
thaks
jim
December 1, 2009 at 12:56 pm
From SSMS, run sp_who2. This will show all connections to the SQL instance, which DB they are connected to, the host ID, application name, and all other connection related information.
December 1, 2009 at 1:13 pm
Excellent John
thanks very much
jim
December 1, 2009 at 1:14 pm
Hi John
forgot to ask
by any chance, do you know what tables that is pulling the info from ?
thanks
jim
December 1, 2009 at 1:17 pm
Go to the Master database, under Programmability>>System Stored Procedures and find sys.sp_who2. You can review the code.
December 1, 2009 at 1:33 pm
Thanks John
will do
Jim
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply