Skip to content

Commit 1172a52

Browse files
authored
Update managed-instance-link-use-scripts-to-replicate-database.md
1 parent 10130cd commit 1172a52

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/azure-sql/managed-instance/managed-instance-link-use-scripts-to-replicate-database.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ USE MASTER
8282
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<strong_password>'
8383
GO
8484

85-
-- Create the SQL Server certificate for SQL Managed Instance link
85+
-- Create the SQL Server certificate for the instance link
8686
USE MASTER
8787
GO
8888

@@ -190,16 +190,17 @@ Certificate for securing the endpoint for SQL Managed Instance link is automatic
190190
Use SSMS to connect to the SQL Managed Instance and execute stored procedure [sp_get_endpoint_certificate](/sql/relational-databases/system-stored-procedures/sp-get-endpoint-certificate-transact-sql) to get the certificate public key.
191191

192192
```sql
193-
-- Execute stored procedure on SQL Managed Instance to get public key of the instance certificate.
193+
-- Execute on Managed Instance
194194
EXEC sp_get_endpoint_certificate @endpoint_type = 4
195195
```
196196

197-
Copy the entire public key from Managed Instance starting with “0x” shown in the previous step and use it in the below query by replacing `<InstanceCertificate>` with the key value. No quotations need to be used.
197+
Copy the entire public key from Managed Instance starting with “0x” shown in the previous step and use it in the below query on SQL Server by replacing `<InstanceCertificate>` with the key value. No quotations need to be used.
198198

199199
> [!IMPORTANT]
200200
> Name of the certificate must be SQL Managed Instance FQDN.
201201
202202
```sql
203+
-- Execute on SQL Server
203204
USE MASTER
204205
CREATE CERTIFICATE [<SQLManagedInstanceFQDN>]
205206
FROM BINARY = <InstanceCertificate>
@@ -208,6 +209,7 @@ FROM BINARY = <InstanceCertificate>
208209
Finally, verify all created certificates by viewing the following DMV.
209210

210211
```sql
212+
-- Execute on SQL Server
211213
SELECT * FROM sys.certificates
212214
```
213215

0 commit comments

Comments
 (0)