17.07.2015 Views

The Omedian Technical Architecture - Red Gate Software

The Omedian Technical Architecture - Red Gate Software

The Omedian Technical Architecture - Red Gate Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Page 58 of 90Chapter 7: SQL Server Performance Crib Sheet• Cursors• Database• Errors and Warnings• Locks• Objects• Performance• Scans• Security Audit• Server• Sessions• Stored Procedures• TSQL• TransactionsKey EventsEach of these categories has a large number of events within it. Rather than detail all the various options, thefollowing is a minimum set of events for capturing basic TSQL performance.Stored Procedures – RPC:CompletedThis records the end point of a remote procedure call (RPC). <strong>The</strong>se are the morecommon events you'll see when an application is running against your database.Stored Procedures – SP:Completed<strong>The</strong>se would be calls against procedures from the system itself, meaning you'velogged into SQL Server and you're calling procedures through query analyzer, or theserver is calling itself from a SQL Agent process.TSQL – SQL Batch:Completed<strong>The</strong>se events are registered by TSQL statements running locally against the serverwhich is not the same as a stored procedure call, for example: SELECT * FROMtablename.Data ColumnsEach of these events can then collect a large number of columns of information, each one may or may not becollected from a given event, depending on the event and column in question and each one may collect differentdata from the event, again depending on the event and column in question. <strong>The</strong>se columns include but are notlimited to:TextDataApplicationNameLoginNameCPUReadsIn the events listed above this column represents the text of the stored procedurecall, including the parameters used for the individual call, or the SQL batchstatement executed.This may or may not be filled in, depending on the connections string used by thecalling application. In order to facilitate trouble shooting and performance tuning,it's worth making it a standard within your organization to require this as part of theconnection from any application.<strong>The</strong> NT domain and user name that executed the procedure or SQL batchThis is an actual measure of CPU time, expressed in milliseconds, used by the eventin question.<strong>The</strong>se are the count of read operations against the logical disk made by the eventbeing captured.Page 58Chapter 7: SQL Server Performance Crib Sheet

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!