sp_replrestart (Transact-SQL)
Applies to: SQL Server Azure SQL Managed Instance
Used by transactional replication during backup and restore so that the replicated data at the Distributor is synchronized with data at the Publisher. This stored procedure is executed at the Publisher on the publication database.
Important
sp_replrestart is an internal replication stored procedure and should only be used when restoring a database published in a transactional replication topology as directed in the topic Strategies for Backing Up and Restoring Snapshot and Transactional Replication.
Transact-SQL syntax conventions
Syntax
sp_replrestart
Return Code Values
0 (success) or 1 (failure)
Remarks
sp_replrestart is used when the highest log sequence number (LSN) value at the Distributor does not match the highest LSN value at the Publisher.
Permissions
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_replrestart.
See Also
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