SQL Server 2005 Profiler Column Filter

  • 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..

  • I think there's a column called HostName that you can filter on.

    John

  • 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.

  • It depends on how the application is set up... HostName might only show the application server that is hitting sql server.

    Sopheap

  • 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.

  • Thanks everybody ..

    It worked . It will really help me..:)

    Thanks once again..

  • 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