Re: sp_trace_setfilter does not work
- From: "Quinn" <dellsql@xxxxxxxxxxxxxxxxx>
- Date: Fri, 16 Feb 2007 17:33:57 -0600
Because when I open the trace file, I see all activity. I want to only see the activity from my application's login which is why I'm using the login filter. Also when I look at the trace file's properties using the profiler gui, there's nothing in the filter section.
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message news:Xns98D9F339A40Yazorman@xxxxxxxxxxxx
Quinn (dellsql@xxxxxxxxxxxxxxxxx) writes:I am trying to create a server side trace via script. The trace will
have a filter on LoginName. However the trace is created but the filter
is not there. I used to do this all the time under SQL 2000 but I have
not been able to set the filters using sp_trace_setfilter under SQL
2005. I'm using SQL 2005 with SP1. Below is the script. I just generated
it from Profiler.
I'm not sure how you deduce that the filter is not there. I tried your
script, changed to a login on myserver. I logged as that user, ran
some queries, and ran some queries from Windows login. I then stopped
the trace and used fn_trace_gettable to look at the result, and it seemed
OK to me.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: sp_trace_setfilter does not work
- From: Erland Sommarskog
- Re: sp_trace_setfilter does not work
- References:
- sp_trace_setfilter does not work
- From: Quinn
- Re: sp_trace_setfilter does not work
- From: Erland Sommarskog
- sp_trace_setfilter does not work
- Prev by Date: Re: sp_trace_setfilter does not work
- Next by Date: Re: sp_trace_setfilter does not work
- Previous by thread: Re: sp_trace_setfilter does not work
- Next by thread: Re: sp_trace_setfilter does not work
- Index(es):
Relevant Pages
|