Using SQL Server Profiler skillfully

Source: Internet
Author: User
Tags management studio microsoft sql server management studio sql server management sql server management studio

When programming with EF, sometimes we can't look at the SQL statements that EF eventually generates, and it doesn't parse the problem well. Let me explain the use of SQL Server Profiler. SQL Server Profiler can view the resulting SQL statements.

First open Microsoft SQL server Management Studio, and then open the Tool->sql Server Profiler,

If the application is more, the interface may be full at once, it is not good to find the corresponding SQL, you can follow the following steps to do:

1. First run the program to the previous step of the database operation.

2. Clear the contents of the interface.

3, continue to run the source code, until the database related operations to execute the source code.

4. Pause the operation of ' SQL Server Profiler '.

5, Ctrl+f, enter the name of the table you want to find, the name of the stored procedure, and so on.

Select the row, and at the bottom you will see the generated SQL statement.

The SQL Server Profiler tool is a great place to debug SQL for our development environment.

Using SQL Server Profiler skillfully

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.