|
SQL Server Home
SQL Server TutorialAbout SQL ServerEnterprise Manager Create a Database Create a Table Adding Data Query Analyzer Views Stored Procedures SQL Server Security Create a Login DTS (Data Transformation Services) SQL Server Agent SQL Server Agent Jobs SQL Server Service Manager SQL Profiler SQL Server Summary Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |
SQL ProfilerSQL Profiler is a handy tool that enables you to monitor events within your SQL Server (or more specifically, a SQL Server instance). For example, you could use SQL Profiler to check the performance of a stored procedure. You could also use SQL Profiler to troubleshoot a problem that's occuring in your production environment. When using SQL Profiler, you can save the output to a "trace file" so that you can later analyze the events that occured during your trace. Accessing SQL ProfilerTo access SQL Profiler:
Creating & Running A "Trace"To monitor activity with SQL Profiler, you create a "trace". A trace captures data based on activity at the time it is run. To create a trace:
Explanation of the "Trace Properties" ScreenIn the previous steps, when we got to the "Trace Properties" screen (step 4), we used the default trace properties. You can change any of these properties as required. For example, you could save the trace output to a file or database table. You could also change the events, data columns, and/or filter the data presented in the trace. Following is a more detailed explanation of each tab on the Trace Properties screen. The "General" Tab
The following table provides an explanation of the options on the General tab.
The "Events" TabThe Events tab consists of event classes grouped by event categories. An event class is the column that describes the event produced by SQL Server. An event is an action generated within the SQL Server engine. Some examples of events include:
Try adding/removing events to see how this affects the trace output.
The "Data Columns" TabData columns describe the data collected for each event class included in the trace. When you view the results of a trace, the data is presented within these data columns. Note that the data columns that are available will depend on the event classes selected. This is because the event class determines the type of data available. Also note that default data columns are selected automatically with all event classes.
The "Filters" TabFilters allow you to filter the data collected by the event. This can help you eliminate data you're not interested in, so that you can concentrate on the data you are interested in. For example, if you're only interested in activity from one user, you can filter the trace to only that user.
Enjoy this website?
Oh, and thank you for supporting Quackit! |
FREE Hosting!With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.PLUS you get:
Featured Template:
(Build your websites in minutes!) |