Skip to content

Commit 58084ba

Browse files
authored
Updates per request from eng/pm
1 parent 8f19d04 commit 58084ba

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

docs/relational-databases/replication/configure-distribution-availability-group.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ After a distribution database in the AG is configured based on the steps describ
6868
>[!NOTE]
6969
>Before executing any of replication stored procedures (for example - `sp_dropdistpublisher`, `sp_dropdistributiondb`, `sp_dropdistributor`, `sp_adddistributiondb`, `sp_adddistpublisher`) on secondary replica, make sure the replica is fully synchronized.
7070
71-
- All secondary replicas in a distribution database AG must be readable.
71+
- All secondary replicas in a distribution database AG should be readable. If a secondary replica is not readable, distributor properties in SQL Server Management Studio on the particular secondary replica can not be accessed.
7272
- All the nodes in the distribution database AG need to use the same domain account to run SQL Server Agent, and this domain account needs to have the same privilege on each node.
7373
- If any replication agents run under a proxy account, the proxy account needs to exist in every node in the distribution database AG and have the same privilege on each node.
7474
- Make changes to distributor or distribution database properties in all replicas participating in distribution database AG.
@@ -111,12 +111,18 @@ This example configures a new distributor and publisher and puts the distributio
111111

112112
The value of `@working_directory` should be a network path independent of DIST1, DIST2, and DIST3.
113113

114-
1. On DIST2 and DIST3, run:
114+
1. On DIST2 and DIST3, if the replica is readable as a secondary, run:
115115

116116
```sql
117117
sp_adddistpublisher @publisher= 'PUB', @distribution_db= 'distribution', @working_directory= '<network path>'
118118
```
119119

120+
If a replica is not readable as a secondary, perform failover such that the replica becomes the primary, and run
121+
122+
```sql
123+
sp_adddistpublisher @publisher= 'PUB', @distribution_db= 'distribution', @working_directory= '<network path>'
124+
```
125+
120126
The value of `@working_directory` should be the same as the previous step.
121127

122128
### Publisher workflow
@@ -190,12 +196,18 @@ This example adds a new distributor to an existing replication configuration wit
190196
sp_adddistributiondb 'distribution'
191197
```
192198

193-
4. On DIST3, run:
199+
4. On DIST3, if the replica is readable as a secondary, run:
194200

195201
```sql
196202
sp_adddistpublisher @publisher= 'PUB', @distribution_db= 'distribution', @working_directory= '<network path>'
197203
```
198204

205+
If the replica is not readable as a secondary, perform failover such that the replica becomes the primary, and run:
206+
207+
```sql
208+
sp_adddistpublisher @publisher= 'PUB', @distribution_db= 'distribution', @working_directory= '<network path>'
209+
```
210+
199211
The value of `@working_directory` should be the same as what was specified for DIST1 and DIST2.
200212

201213
4. On DIST3, you must recreate Linked Servers to the subscribers.

0 commit comments

Comments
 (0)