sys.dm_repl_tranhash (Transact-SQL)
Applies to: SQL Server
Returns information about transactions being replicated in a transactional publication.
column_name | data_type | description |
---|---|---|
buckets | bigint | Number of buckets in the hash table. |
hashed_trans | bigint | Number of committed transactions replicated in the current batch. |
completed_trans | bigint | Number of transactions competed so far. |
compensated_trans | bigint | Number of transactions that contain partial rollbacks. |
first_begin_lsn | nvarchar(64) | Earliest begin log sequence number (LSN) in the current batch. |
last_commit_lsn | nvarchar(64) | Last commit LSN in the current batch. |
Permissions
Requires VIEW DATABASE STATE permission on the publication database to call dm_repl_tranhash.
Permissions for SQL Server 2022 and later
Requires VIEW DATABASE PERFORMANCE STATE permission on the database.
Remarks
Information is only returned for replicated database objects that are currently loaded in the replication article cache.
See also
Dynamic Management Views and Functions (Transact-SQL)
Replication Related Dynamic Management Views (Transact-SQL)
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru