Difference between revisions of "SQL Profiler"

From Galen Healthcare Solutions - Allscripts TouchWorks EHR Wiki
Jump to navigation Jump to search
 
Line 15: Line 15:
 
==Tips & Tricks to solve Touchworks Issues==
 
==Tips & Tricks to solve Touchworks Issues==
 
Many errors that one can receive in Touchworks can be traced back to its underlying SQL database calls using SQL Profiler.
 
Many errors that one can receive in Touchworks can be traced back to its underlying SQL database calls using SQL Profiler.
#Timing
+
===Timing===
#Filters
+
Touchworks has many database calls happening concurrently and therefore makes profiling your SQL database challenging.  One of the best tricks to narrowing the window of when your traceable instance will occur.  I.E.  If you have a known issue that you are attempting to profile, reproduce the workflow just short of the final critical step.  Start the profiler trace.  Produce the critical step to get the error, and stop/pause the profiler trace immediately.
 +
===Event Selection & Filters===

Latest revision as of 16:16, 10 September 2008

Overview

Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services. You can capture and save data about each event to a file or table to analyze later. For example, you can monitor a production environment to see which stored procedures are affecting performance by executing too slowly.

To run SQL Server Profiler, on the Start menu, point to All Programs, Microsoft SQL Server 2005, Performance Tools, and then click SQL Server Profiler.

Compliments of Microsoft MSDN Introducing SQL Server Profiler

Introduction

Output Parameters

Sql-profiler-trace-properties-general.JPG

Event Selection & Filters

Sql-profiler-trace-properties-event-selection.JPG

Tips & Tricks to solve Touchworks Issues

Many errors that one can receive in Touchworks can be traced back to its underlying SQL database calls using SQL Profiler.

Timing

Touchworks has many database calls happening concurrently and therefore makes profiling your SQL database challenging. One of the best tricks to narrowing the window of when your traceable instance will occur. I.E. If you have a known issue that you are attempting to profile, reproduce the workflow just short of the final critical step. Start the profiler trace. Produce the critical step to get the error, and stop/pause the profiler trace immediately.

Event Selection & Filters