How to trace with SQL Server profiler [closed]

那年仲夏 提交于 2019-12-20 06:21:24

问题


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.


回答1:


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



回答2:


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



来源:https://stackoverflow.com/questions/10845304/how-to-trace-with-sql-server-profiler

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