Solved

Trace a specific database using SQL Profiler

Posted on 2009-06-30
8
673 Views
Last Modified: 2012-05-07
Our database server hosts multiple databases for various apps and I'd like to set up SQL Profiler to monitor a specific Database.  I do not know how to do this.

0
Comment
Question by:Paulconsulting
  • 4
  • 3
8 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 24748778
Create a new trace, click on the filter settings, select either the database name or database Id and enter the name /id of the database
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24748801
Hope this gives you a brief idea on the usage of SQL Profiler using this document

http://articles.techrepublic.com.com/5100-10878_11-5054787.html

In Figure D,you have to choose the Database Name which you like to Audit.
Pictures slightly differ in SQL Server 2005 as the site shows SQL Server 2000 snapshots.

In 2005, You can start profiler from SSMS --> Tools

Hope this helps
0
 

Author Comment

by:Paulconsulting
ID: 24748812
where are the filter settings?
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24748828
Hope you can see the Filter settings as mentioned in Figure D in the link above.
0
 

Author Comment

by:Paulconsulting
ID: 24748976
I don't have a filters tab - just one that says General and one that says Events Selection
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24751965
Please find the snapshot attached for  SQL Server 2005 and steps to do this:

1. Click on Event Selection Tab in Trace Properties.
2. Check Show all Events and Show all Columns.
3. Now click on Column Filters.

Now you would be able to see DatabaseName and use that Filter accordingly.

Profiler.JPG
0
 

Author Closing Comment

by:Paulconsulting
ID: 31598506
Thanks :)
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24753509
Welcome..
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

823 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