Question

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

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top