473,378 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Profiler Performance trace template

Greetings,

I have been attempting to develop a useful and functional template for
database tracing/profiling that will enable me to collect metrics for
performance tuning. The database is used as an OLTP database as well as
running reports. Below is a list of my trace properties and data columns.
I would be interested to see other examples and strategies for the Profiler.
thanx

Performance
Execution plan
Security
Audit Login
Audit Logout
Sessions
Existing Connection
Stored Procedures
RPC: Completed
TSQL
SQL:Batch completed
DATA COLUMNS
Event class
textdata
application name
NTUsername
LoginNames
CPU
read
write
duration
client proc id
SPID
Starttime

Jul 20 '05 #1
3 5947
Robert (st*******@boeing.com) writes:
I have been attempting to develop a useful and functional template
for
database tracing/profiling that will enable me to collect metrics for
performance tuning. The database is used as an OLTP database as well as
running reports. Below is a list of my trace properties and data
columns. I would be interested to see other examples and strategies for
the Profiler.


There too many ways to profile with Profiler to list them all. I do
have a performance template, and is quite difficult from yours. I have
all SP events, but SP:ExecContextHit and SP:StmtStarting and SP:SPStarting.
The only other event is SQL:BatchCompleted. As for the columns I
have EventData, TextData, CPU, Read, Write, Duration, Spid, StartTime
and EndTime. I typically add a filter for a certain spid, since I use
this template for tracking troublesome function.

But as the trace goes on, I might add Execution Plan, together with
some filter, to only give the interesting plans. I might add EventSubClass
to find out abour reasons for recompiles. I might add a Duration
filter to remove 0-ms events. (In which case also CacheMiss and other
timeless events might be dropped.)
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
Thanx Erland for your suggestions.
"Erland Sommarskog" <so****@algonet.se> wrote in message
news:Xn**********************@127.0.0.1...
Robert (st*******@boeing.com) writes:
I have been attempting to develop a useful and functional template
for
database tracing/profiling that will enable me to collect metrics for
performance tuning. The database is used as an OLTP database as well as
running reports. Below is a list of my trace properties and data
columns. I would be interested to see other examples and strategies for
the Profiler.
There too many ways to profile with Profiler to list them all. I do
have a performance template, and is quite difficult from yours. I have
all SP events, but SP:ExecContextHit and SP:StmtStarting and

SP:SPStarting. The only other event is SQL:BatchCompleted. As for the columns I
have EventData, TextData, CPU, Read, Write, Duration, Spid, StartTime
and EndTime. I typically add a filter for a certain spid, since I use
this template for tracking troublesome function.

But as the trace goes on, I might add Execution Plan, together with
some filter, to only give the interesting plans. I might add EventSubClass
to find out abour reasons for recompiles. I might add a Duration
filter to remove 0-ms events. (In which case also CacheMiss and other
timeless events might be dropped.)
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 20 '05 #3
Thanx Erland for your suggestions.
"Erland Sommarskog" <so****@algonet.se> wrote in message
news:Xn**********************@127.0.0.1...
Robert (st*******@boeing.com) writes:
I have been attempting to develop a useful and functional template
for
database tracing/profiling that will enable me to collect metrics for
performance tuning. The database is used as an OLTP database as well as
running reports. Below is a list of my trace properties and data
columns. I would be interested to see other examples and strategies for
the Profiler.
There too many ways to profile with Profiler to list them all. I do
have a performance template, and is quite difficult from yours. I have
all SP events, but SP:ExecContextHit and SP:StmtStarting and

SP:SPStarting. The only other event is SQL:BatchCompleted. As for the columns I
have EventData, TextData, CPU, Read, Write, Duration, Spid, StartTime
and EndTime. I typically add a filter for a certain spid, since I use
this template for tracking troublesome function.

But as the trace goes on, I might add Execution Plan, together with
some filter, to only give the interesting plans. I might add EventSubClass
to find out abour reasons for recompiles. I might add a Duration
filter to remove 0-ms events. (In which case also CacheMiss and other
timeless events might be dropped.)
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jw56578 | last post by:
Where is the information coming from that is displayed in query profiler. Is it the command that is retrieved before it is processed, or is it what is actually processed.
8
by: patrickshroads | last post by:
I am running a profiler trace against a database and noticed that the reads column always shows 0. When running the same trace against another machine I get back values in the reads column. I took...
2
by: Celine & Dave | last post by:
Hello All, I am trying to find a profiler that can measure the memory usage in a Python program. I would like to gather some statistics about object usages. For example, I would like to be able...
9
by: GDCII | last post by:
Does anyone know what the DB2 equivalent is for Oracle:Trace or SQl Server Profiler ? Thanks Gary
8
by: Bryan | last post by:
Does anyone have an example of an application that can connect to a running process and capture Trace.WriteLine calls like in SQL Server Profiler? I know that we can inherit from a TraceListener...
1
by: Thyagu | last post by:
Hi, We have a requirement to run profiler continuously to find out the misbehaving applications/SQL in the dataserver. And we are not interested in running it from an individuals local machine....
1
by: ofirmgr | last post by:
im trying to understand how the profiler works. so i started 2 profilers,one listen to another and I saw the profiler is running: exec sp_trace_create @P1 output, 1, NULL, NULL, NULL which means...
3
by: Sam Samson | last post by:
Can any-one recommend some good sites detailing how to code a simple memory profiler? How do they "look under the hood"? I built an uber simple service that tracks the process' memory but I need...
0
by: anweshadash | last post by:
Using SQL Profiler: (Ref: http://msdn2.microsoft.com/en-us/library/ms181091.aspx) Sometimes it’s very beneficial to use sql profiler. Let’s have an idea about that and how to use that by...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.