Solved

SQL profiler Filter

Posted on 2010-08-18
6
727 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
ID: 33473106
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 46

Expert Comment

by:Vitor Montalvão
ID: 33474761
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
ID: 33474793
alphaau:

I think it's the only solution available

VMontalvao:

what about the cross database query made from another database?  
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 46

Expert Comment

by:Vitor Montalvão
ID: 33474830
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
ID: 33476205
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
ID: 33476227
no solution look available for "OR" filter, I will used two seperate Trace.

thanks,
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Server Degrading on Write 13 63
CREATE DATABASE ENCRYPTION KEY 1 56
Restrict result set 1 33
SQL Query with Sum and Detail rows 2 39
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

929 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

12 Experts available now in Live!

Get 1:1 Help Now