Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging User Statistics in SQL Server

Status
Not open for further replies.

jjpark75

Programmer
May 3, 2002
15
0
0
US
Hi,

Does SQL Server have tools to track users who are logged onto the SQL Server via a desktop application, as well other pertinent stats? Thanks.

Jung
 
It's called Profiler. We are in the process of decomissioning a coulpe of applications that run off of various SQL Servers, so we set up a computer to run Profiler. It watches all the SQL servers, and writes the activity to a table on one of the SQL Servers.
 
You can use profiler to track the users ... You can also query from the backend ...

Select program_name,hostname, nt_username, nt_domain from master..sysprocesses
Where Ltrim(program_name) <>''

You can also use sp_who2 to get the users connected ...

HTH,
Vinod Kumar
 
Thanks alot! I'll check out Profiler. I think that may be the answer.

Jung
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top