How to trace with SQL Server profiler [closed]

不想你离开。 提交于 2019-12-02 10:08:09

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

In sql Profiler go to File -> New Trace Enter your server name

In the next windows just click run and u ll see the trace commands

Execute few statements in your management studio and then check the profiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!