April 30, 2008 at 2:21 am
Hi All
I want to filter a trace of SQL Server 2005 Profile with the IP address of the client system .
Current Situation
Multiple workstation is running same application with a common SQL Server login to a common SQL Server 2005
Requirement
I want to filter the trace for a particular work station when all other users are working.
Problem
Can anyone suggest me which filter option I need to choose ? Can I use some IP based filter ?
Thanks in advance..
April 30, 2008 at 2:42 am
I think there's a column called HostName that you can filter on.
John
April 30, 2008 at 5:15 am
In the Events Selection tab, check the Show all Columns check box, and then click on Column Filters button. Select the HostName option from the Edit Filter list on the left frame, and specify the name of the system in the Like on the right frame.
Hope this helps.....
Chandrachurh Ghosh
DBA – MS SQL Server
Ericsson India Global Services Limited
Quality is not an act, it is a habit.
April 30, 2008 at 6:02 am
It depends on how the application is set up... HostName might only show the application server that is hitting sql server.
Sopheap
April 30, 2008 at 6:09 am
That is correct, if the connection is through the application server's DAL, then it will be difficult.
Chandrachurh Ghosh
DBA – MS SQL Server
Ericsson India Global Services Limited
Quality is not an act, it is a habit.
May 5, 2008 at 6:22 am
Thanks everybody ..
It worked . It will really help me..:)
Thanks once again..
October 1, 2012 at 3:13 am
Create New Trace
In Event Selection Tab, un-check others than RPC:Completed
Click on Column Filters, Click Application Name like ".Net SqlClient Data Provider"
Click on Client Process Id=<your host_process_id>
(host_process_id=select host_process_id from sys.dm_exec_sessions)
Click OK and Run the trace.
You will get only traces for for your client and also .net SQL client, not others like Report Server, etc.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply