开发者

SQL Server Profiler issue

开发者 https://www.devze.com 2023-01-04 02:17 出处:网络
I am using SQL Server 2008 Enterprise and I want to use SQL Server profiler to capture deadlock event only. And when deadlock occurs and event captured, I will stop SQL Server profiler.

I am using SQL Server 2008 Enterprise and I want to use SQL Server profiler to capture deadlock event only. And when deadlock occurs and event captured, I will stop SQL Server profiler.

My question is, since I launched SQL Server profiler, and before deadlock occur (event captured), any impact (more about performance impact) to database?

thanks 开发者_开发百科in advance, George


SQL profiler is another client of the database so it will impose some load, but quite little.

You can see how much CPU etc is used by looking as sys.sysprocesses for the SPID used by profiler.

However, you can also trap deadlock information to the SQL Server error log by using trace flags 1204 and 1222. And this link too for an overview.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号