- Print
- DarkLight
- PDF
How do I initiate SQL Server Profiling on SQL 2000 / 2005 / 2008?
How do I initiate SQL Server profiling on SQL 2005 / 2000?
For SQL Server 2008:
Click on the start menu -> Programs -> Microsoft SQL Server 2005 -> Performance Tools - > SQLServer Profiler
From the File menu choose "New Trace.."
Connect to the Sever where Pharos database exists with the appropriate credentials.
Select the Events Selection TAB > check the box Show All Events.
Under Stored Procedures make sure the following are checked.
-RPC:Starting
-RPC: Completed
Under T-SQL make sure the following are checked.
-SQL:BatchStarting
-SQL:BatchCompleted
Select Run and then replicate the scenario to capture the SQL information in the Trace window.
Save the file as a Trace file and forward it to Pharos Support along with the version of SQL used.
For SQL Server 2005:
Click on the start menu -> Programs -> Microsoft SQL Server 2005 -> Performance Tools - > SQLServer Profiler
From the file menu create a new trace
Connect to the Sever where Pharos database exists with the appropriate credentials.
Make sure the calls are being made in the background to be captured in the trace
Under Trace Properties Select Show All Events
-Under Stored Procedures tick the following
-RPC:Starting
-RPC: Completed
-Under T-SQL tick the following
-SQL:BatchStarting
-SQL:BatchCompleted
Select Run and save the file as a Trace file and forward it to Pharos.
For SQL Server 2000:
Click on the start menu -> Programs -> Microsoft SQL Server -> Profiler
From the file menu create a new trace
Connect to the Sever where Pharos database exists with the appropriate credentials.
Make sure the calls are being made in the background to be captured in the trace
Under the Events Tab
Add the following for StoredProcedures:
-RPC:Starting
-RPC:Completed
Add the following for TSQL:
-SQL:BatchStarting
-SQL:BatchCompleted
Select Run and save the file as a Trace file and forward it to Pharos.