Replication server restart

kK-2020 46 Reputation points
2020-07-04T07:59:06.443+00:00

I wanna restart a Sql server running on a vm which host replication on it, is it safe to just stop the log and snapshot reader and restart the server or do I also have to disable the publisher and distributor

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,776 Reputation points
    2020-07-04T08:49:57.093+00:00

    Hi,

    Should be safe to stop both snapshot and log reader agents.

    Start and Stop a Replication Agent (SQL Server Management Studio)
    https://video2.skills-academy.com/en-us/sql/relational-databases/replication/agents/start-and-stop-a-replication-agent-sql-server-management-studio?view=sql-server-ver15

    Then as long as you don't have any long running transactions you can restart the SQL Server using the console or shutdown command during a low activity period or during a maintenance window.

    A clean shutdown of an SQL Server occurs in below scenarios :

    • Stop SQL server using services console.
    • Shutting down your server
    • Running "SHUTDOWN" command in SSMS

    Best regards,
    Leon


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.