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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filtering by null value in profiler?

Status
Not open for further replies.

ryansupak

MIS
Jul 23, 2002
39
US
hi,

in sql profiler, under File|Properties|Filters, you can set it to filter the output by either Like <argument> or Not Like <argument>. all i want it to do is to ignore any event where TextData is blank. i've tried &quot;Not Like %%&quot;, &quot;Not Like % %&quot;, and &quot;Not Like ''&quot;. any other ideas?

thanks in advance,
rs
 
That's a shortcoming of trace that I haven't found a way to overcome. Trace filters cannot be NULL or Empty String. You want to eliminate NULL but there is no trace filter for that. If someone else has a solution, I'd love to hear it. Let's hope the next version of SQL Server addresses the issue. If you want to get the best answer for your question read faq183-874.

Terry L. Broadbent - DBA
SQL Server Page:
 
hi,

i think i've got it.

&quot;Like %&quot; seems to eliminate all those nasty nulls.

thanks,
rs
 
ugh-

except for that it seems to disregard all of the &quot;Not Like&quot; filters in that case...

still trying...
rs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top