SQL Profiler templates

Way back when I was using the 2000 version of SQL Profiler I would always apply a filter to restrict my profiling by database id. On busy servers it’s simply the only way to fly. When I moved to using the SQL 2005 version of profiler I was quite shocked to find this option wasn’t visible. I did a bit of searching, but found nothing, and was in a hurry to get my profiling done - so I gave up.

Whenever I’m using profiler there’s usually a problem, which usually means there’s some time pressure, so it’s not the best time to run off playing keyword bingo with google. I’ve asked a few people who use profiler a lot more than me if they had any idea where the setting went, and they didn’t.

Yesterday I found that the option to restrict by database (and in 2005 it can be done by id or by name – no more select * from master..sysdatabases for me!) is still available! It’s just very well hidden.

It seems that it’s now available in the Templates section – File / Templates / New Template, choose a template to inherit from, then head to the “Events Selection” tab. Select column filters, and you should see a lot more options there than usual. Add your filter for the id or name, save, and you’re away.

Interestingly if you go back and edit this template, then you can no longer see those advanced options – they can only be setup and viewed when the template is first created. Seems a little weird, but really I’m too pleased to have found the option to feel the need to debate the finer point’s of Microsoft’s UI design.

 Print | Posted on Thursday, June 12, 2008 5:29 PM | Filed Under [ Miscellaneous SQL ]


Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Website / Url
 

Your comment

   
Please add 2 and 2 and type the answer here:

About me

My name is Ross Hawkins and I'm a Developer, Consultant and Writer based in Auckland, New Zealand. My current work revolves around ASP.NET, C#, Ajax, SQL Server, and a mix of other Microsoft development technologies. Previously I spent about 11 years working with Lotus Notes/Domino.


Subscribe

Subscribe to this feed


Search


Popular Content

Troubleshooting WebResource.axd

The .NET 2.0 framework changed the way clientside JavaScript is delivered to the browser. Previously, ASP.NET 1.1 used the aspnet_client directory whereas now 2.0 uses WebResource.axd.

Published on October 8, 2006

Microsoft AJAX Extensions: Sys.Debug is null or not an object

One of the breaking changes which was made with the 1.0 release of the Microsoft Ajax Extensions was the renaming of the 'Debug' class to 'Sys.Debug' for reasons of compatiability with other frameworks. Breaking changes like this can often be a source of frustration..

Published on May 22, 2007

Simple ASP.NET Character Counter

A textbox character counter is a pretty simple piece of functionality, and there's a lot of different ways to apply one to your application. The following method is nice and simple, and can be done using only clientside JavaScript if required, or combined with server side code in order to create a more dynamic effect

Published on December 4, 2006

Adding Tooltips to Gridview Headers

As the title says, this is a very simple but dynamic way of achieving tooltip text on a header column. It's not overly flash, but it's lightweight and quick to implement.

Published on April 15, 2007

SQL Server Web Report Viewer Issues on Windows 2008 Server/IIS7

A fix for another AXD related issue, this time with the SQL Server Web Report Viewer Control which was being served up via IIS7 on a Windows 2008 server.

Published on June 2, 2007
Updated on April 10, 2008


Archives

January, 2009 (2)
December, 2008 (6)
November, 2008 (7)
October, 2008 (9)
September, 2008 (12)
August, 2008 (9)
July, 2008 (6)
June, 2008 (24)
May, 2008 (13)
April, 2008 (16)
March, 2008 (8)
February, 2008 (10)
January, 2008 (1)
December, 2007 (14)
November, 2007 (11)
October, 2007 (11)
September, 2007 (13)
August, 2007 (11)
July, 2007 (5)
June, 2007 (15)
May, 2007 (11)
April, 2007 (9)
March, 2007 (9)
February, 2007 (10)
January, 2007 (8)
December, 2006 (18)
November, 2006 (11)
October, 2006 (14)
September, 2006 (9)
August, 2006 (10)
July, 2006 (4)
June, 2006 (4)
May, 2006 (6)
April, 2006 (3)
February, 2006 (6)
January, 2006 (10)
September, 2005 (2)
August, 2005 (4)

Post Categories

ASP.NET
AJAX
Amusing
NZ
NZ Trains
Notes/Domino
Visual Studio
Web Development
Miscellaneous
Me
Rugby
C#
SQL


Twitter