SQL Server Profiler Tips-filtering requests

Source: Internet
Author: User

  

  

If you need to reprint, please attach the author and the original link: http://www.cnblogs.com/zeusro/p/4016228.html

Microsoft SQL Server Profiler is a graphical user interface for SQL tracing that is used to monitor the database engine or instances of analysis Services. You can capture data about each event and save it to a file or table for later analysis. For example, you can monitor your production environment to see which stored procedures affect performance because of slow execution.

   To run SQL Server Profiler, use theStartmenu, point to"All Programs"、Microsoft SQL Server 2008And"Performance Tools", and then click SQL Server Profiler.

In the new tracking template selection of the default standard for me is enough, event selection, the individual is so selected. That is, the reply event, the stored procedure, TSQL.

But this is not enough, in the beginning of monitoring there will be a lot of interference, as SSMs sent a request, Report server sent a request. And I just want to monitor the SQL generated by LINQ in the program. Of course can use Linqer, but with this software when I solve the problem of permissions, run time or error, so give up.

Back to the point, the solution is the column filter in the diagram above. One feature of the request from EF is that ApplicationName is always entityframework, so set it as a rule to add "like" to ApplicationName joins. The same is true of other screening criteria.

Also note that this property can only be changed without monitoring, at run time to stop after changing the property.

SQL Server Profiler Tips-filtering requests

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.