SQL Server Profiler debugging code monitoring SQL statements

Source: Internet
Author: User

When you connect to a database, you can listen to SQL statements to maximize the debugging progress.
1. Create a listener to listen to the database information I want to know.
I want to know the details of the SQL statements currently executed, the SQL statements that affect several database records and the end time of the start time.
2. Create a field in the listener that I want to test.
3. filter: I want to listen to the user and the database.
4. I wrote it in the applicationProgramRead the database or query analyzer to write SQL statements. I can view the details of my SQL statements in the listener.
5. I write the stored procedure in the query analyzer, which will affect the data in my listener.

Note: I only listen to the fields I want to view. You can also listen to the information you want to see, but modify
You must stop the listener before modifying the listener.

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.