Solved

Trace a specific database using SQL Profiler

Posted on 2009-06-30
8
662 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
 
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Having clause with Case 2 32
Change variables in SQL table 6 81
get most recent and second most recent date in SQL Server 24 78
Sql query 107 22
If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
A short film showing how OnPage and Connectwise integration works.

914 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

13 Experts available now in Live!

Get 1:1 Help Now