The monitoring process has performed those SQL operations on the database

Source: Internet
Author: User

To monitor what SQL operations a process has made on a database.

1, first find the process ID, open-Task Manager-process, in general, the Process ID column is hidden, so click on the view above-select the column-pid tick, then see can be called See your Process ID, and then find your program corresponding to the process ID.

2. Log in to the database you want to listen to, run select db_id (' database name ') to get the number of your database

3. Log in Database Tools-SQL Server Profiler (P)

4, go into the column filter

Enter database number a funnel-like icon appears in front of the DatabaseID column to successfully add a filter condition

Then in the Add Process ID filter criteria

Note: If a funnel-like icon appears before the ApplicationName column, remove the condition inside

After the condition is added, click Run to see what SQL the process has done to a database.

The monitoring process has performed those SQL operations on the database

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.