Use of SQL Server Profiler

Source: Internet
Author: User

use of SQL Server Profiler

Open the System main Menu--sqlserver several---performance tools--->>sql server Profiler; you got it? Brother Wait for you, give you a picture of open him, let you see.

Then the file--new trace--Displays the Tracking Properties window

First of all, the select% is a screening and monitoring textdata. That percent is a wildcard, and what he means is to filter the statements of the select openings. Of course you can define it yourself, like update%,delete% ...

Take the line that excludes the value, and then OK, run. Then run a select in the database. You'll find him detected.

Each column to the right, starting from EventClass, I'll tell you what it is.

Event classification, request statement, application name, operating system user, database user, CPU occupancy, read database times, write database session, execute script time, application process number, start time, end time, etc.

Event selection, you put the mouse up, he has the Chinese comments below. Take a good look at it and pick up the event according to your own needs.

Then the file-->> saved as, you can save these monitored data as a file, or a data table.

Analysis:

1. Find the longest-lasting query














Use of SQL Server Profiler

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.