If the scope of the trace flag is global only does it mean I can't use it only for one connection while not affecting the performance of others?

enter image description here

有帮助吗?

解决方案

If the scope of the trace flag is global only does it mean I can't use it only for one connection while not affecting the performance of others?

The scope signifies the affect of trace flag, a global scope means it will be applicable to all connections of SQL Server, it cannot be made to work only for particular connection/session. On the other hand trace flags whose scope are limited to session will be applicable to particular session.

If you refer to Trace Flags documentation it says

Trace flag behavior may not be supported in future releases of SQL Server.

If you are using SQL Server 2008 and above you have extended events to get deadlock information. Please see

其他提示

You dont have to enable 1204 traceflag if you want to get deadlock info.

You can use my script to get the deadlock graph which uses event notification.

许可以下: CC-BY-SA归因
不隶属于 dba.stackexchange
scroll top