SQL Server Trace (Trace)--blocking trace log

Written in front of the words:

The content of this article is for reference  

https://www.cnblogs.com/gered/p/10998090.html

The author just added some details encountered in the process of practice on the basis of the article;

Special thanks to the author Guo Daxia 1 for his selfless sharing

foreword 

If default trace information is turned on, it will automatically record SQL Server startup information when SQL Server starts. This function is like the black box of an airplane, and it will record all changes to the configuration information of a SQL Server instance. Looking at this information, you can see what changes were made to the database at the time of the failure. The default trace information and ERRORLOG are stored in the same log folder with a name such as "log_xxx.trc", where xxx is a set of sequence numbers. You can use Profiler to open these files to view event records, or use the function "fn_trace_gettable" to process these files.

"Tracking" is also ubiquitous in our SQL Server database. If we make good use of tracking techniques, we can conduct directional analysis for certain specific scenarios and find sufficient evidence to solve the case.

Just a few application scenarios:

Why did the online production library suddenly go down?

Why Hundreds of Data Sheets Are Missing&#x

おすすめ

転載: blog.csdn.net/cplvfx/article/details/129717120