Solved

SQL profiler Filter

Posted on 2010-08-18
6
719 Views
Last Modified: 2012-05-10
I want to make a trace on my MS SQL 2005 server to be able to see if one specific database still in used by external software.

I know how to filter on the database itself  (Filter on "Database name")
I know how to filter on the Cross database query (filter on "Text data")

how can I create a trace filter whit a "OR" between two filter.

Where [Database Name] = 'xxx' or [TextData] = 'xxx'


Thanks,
0
Comment
Question by:Cboudroz
  • 3
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
alphaau earned 250 total points
Comment Utility
i cannot found or between two filter.

how about opening two trace and log the result the two db table,

and then select the union result from the two tables?
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
If you only want to know if a database is in use why don't you capture only "Audit Login" event?
0
 
LVL 7

Author Comment

by:Cboudroz
Comment Utility
alphaau:

I think it's the only solution available

VMontalvao:

what about the cross database query made from another database?  
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 45

Expert Comment

by:Vitor Montalvão
Comment Utility
You have information about the user, host and application in the Audit Login event. So I think you won't need nothing else.
0
 
LVL 7

Author Comment

by:Cboudroz
Comment Utility
VMontalvao:

I don't want to see if application connect to the server but if query goes in a specific DB.  Audit Login don't give any info about database connection and don't give me any info about cross database query.



alphaau:

event if you didn't really help me the point goes to you!
0
 
LVL 7

Author Closing Comment

by:Cboudroz
Comment Utility
no solution look available for "OR" filter, I will used two seperate Trace.

thanks,
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now