Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to trace with SQL Server profiler [closed]

i am trying my hands on SQL server profiler i would like to know how to trace using SQL server profiler. any link with apprpiate GUI will be more then helpfull.

like image 540
shadab shah Avatar asked May 08 '26 16:05

shadab shah


1 Answers

Steps:

SQL Server Management Studio

  1. Go to MS SQL Server Management Studio and select the database you want to trace in the Profiler.
  2. Right click the database and select New Query.
  3. In the query window type select db_id() then execute... and remember the number generated

SQL Server Profiler

  1. File - New Trace then choose server, Authentication Mode provide UserName and Password and click connect.
  2. In the trace properties go to events selection tab.
  3. click Show all events and Show all columns.
  4. Click Column Filters button
  5. click DatabaseID
  6. click Equals then input the DB ID generated before in the Mangement Studio
  7. Click Ok then click the Run Button
like image 74
Eric Avatar answered May 11 '26 07:05

Eric