Friday, September 13, 2024

MS-SQL Server - COALESCE, Waits (DISABLE_VERSIONING, DEBUG, ENABLE_VERSIONING & QPJOB_WAITFOR_ABORT)

COALESCE


https://learn.microsoft.com/en-us/sql/t-sql/language-elements/coalesce-transact-sql?view=sql-server-ver16



DISABLE_VERSIONING


Occurs when SQL Server polls the version transaction manager to see whether the timestamp of the earliest active transaction is later than the timestamp of when the state started changing. If this is this case, all the snapshot transactions that were started before the ALTER DATABASE statement was run have finished. This wait state is used when SQL Server disables versioning by using the ALTER DATABASE statement.


DEBUG


Occurs during Transact-SQL and CLR debugging for internal synchronization.


ENABLE_VERSIONING 


Occurs when SQL Server waits for all update transactions in this database to finish before declaring the database ready to transition to snapshot isolation allowed state. This state is used when SQL Server enables snapshot isolation by using the ALTER DATABASE statement.


& QPJOB_WAITFOR_ABORT


Indicates that an asynchronous automatic statistics update was canceled by a call to KILL when it was running. The update has now completed but is suspended until the terminating thread message coordination is complete. This is an ordinary but rare state, and should be very short. A good value is less than one second.


{And JDBC Configurations}


https://learn.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver16


Thankyou



T. Amit Vaid S.

No comments: