You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-sql/managed-instance/managed-instance-link-use-scripts-to-replicate-database.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ USE MASTER
82
82
CREATE MASTER KEY ENCRYPTION BY PASSWORD ='<strong_password>'
83
83
GO
84
84
85
-
-- Create the SQL Server certificate for SQL Managed Instance link
85
+
-- Create the SQL Server certificate for the instance link
86
86
USE MASTER
87
87
GO
88
88
@@ -190,16 +190,17 @@ Certificate for securing the endpoint for SQL Managed Instance link is automatic
190
190
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.
191
191
192
192
```sql
193
-
-- Execute stored procedure on SQL Managed Instance to get public key of the instance certificate.
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.
198
198
199
199
> [!IMPORTANT]
200
200
> Name of the certificate must be SQL Managed Instance FQDN.
201
201
202
202
```sql
203
+
-- Execute on SQL Server
203
204
USE MASTER
204
205
CREATE CERTIFICATE [<SQLManagedInstanceFQDN>]
205
206
FROM BINARY =<InstanceCertificate>
@@ -208,6 +209,7 @@ FROM BINARY = <InstanceCertificate>
208
209
Finally, verify all created certificates by viewing the following DMV.
0 commit comments