This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15965|Reply: 0

[Source] SQL Server Profiler analyzes filters to execute scripts

[Copy link]
Posted on 2021-3-1 13:23:50 | | | |
SQL Server Profiler is an interface for creating and managing traces and analyzing and replaying trace results. These events are saved in a trace file that can be analyzed or used to replay a series of specific steps when a problem is diagnosed later.

The SQL Server Profiler tool can capture a lot of information about the database, such as connection status, adding, deleting, modifying, and changing statements, executed stored procedure parameters, and so on. If we create a new trace directly, after clicking Run, a large number of logs will be recorded, which is inconvenient for us to troubleshoot the problem.

What if we quickly find the SQL information we need?

In the template in the new track, select the following events:



Check to show all columns, slide the scroll bar, and check "DatabaseName", as shown in the figure below:



Click on the column filter to find databaseName, similar to population, we need to track the name of the database we want to analyze, as shown in the following image:


Of course, you can also filter by ApplicationName:

SQL Server connection string Application Name parameter is explained in detail
https://www.itsvse.com/thread-9124-1-1.html



Finally, click Run.

Try executing a query SQL statement on the database, and the trace result is as follows:



(End)







Previous:Intel NUC8i5BEH 2700 yuan with a working host
Next:Beyond Compare Solution to the error "This authorization key has been revoked"
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com