sp_repltrans (Transact-SQL)
Applies to: SQL Server Azure SQL Managed Instance
Returns a result set of all the transactions in the publication database transaction log that are marked for replication but have not been marked as distributed. This stored procedure is executed at the Publisher on a publication database.
Transact-SQL syntax conventions
Syntax
sp_repltrans
Result Sets
sp_repltrans returns information about the publication database from which it is executed, allowing you to view transactions currently not distributed (those transactions remaining in the transaction log that have not been sent to the Distributor). The result set displays the log sequence numbers of the first and last records for each transaction. sp_repltrans is similar to sp_replcmds (Transact-SQL) but does not return the commands for the transactions.
Remarks
sp_repltrans is used in transactional replication.
sp_repltrans is not supported for non- Microsoft SQL Server Publishers.
Permissions
Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_repltrans.
See Also
sp_repldone (Transact-SQL)
sp_replflush (Transact-SQL)
System Stored Procedures (Transact-SQL)
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho