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