How to use SQL Profiler to filter NULL SQL login names? i.e NT authentication

  • I would like to set up SQL Profiler sessions to both trap and exclude connections via NT authentication.

    This shows up in the as a NULL SQL login name.

    When I am setting up a filter (either LIKE or NOT LIKE) how do I specify a NULL username rather than the text string "NULL"?

    Tom.

     

     

  • Use -

    WHERE username IS NULL







    **ASCII stupid question, get a stupid ANSI !!!**

  • Can the filters be set up directly as queries?

    Is there a free form entry box for queries?

    Tom.

     

  • Apologies - I completely missed the "profiler" bit....

    I'm experimenting with using the isnull function with the LIKE filter - will let you know if it works!







    **ASCII stupid question, get a stupid ANSI !!!**

  • Tom - the closest I got was using 'isnull(ntusername, 'n') in the 'not like' filter - however, since I am not on a network right now it's difficult for me to test...maybe you can run a couple of test traces and see (unless you've already tried this)..







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply