Skip to content

Commit 62f0bc2

Browse files
committed
Adding details to SQL MI link documentation.
1 parent 97702d8 commit 62f0bc2

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

articles/azure-sql/managed-instance/link-feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Some Managed Instance link features and capabilities are limited **at this time*
105105
- Managed Instance Link authentication between SQL Server instance and Managed Instance is certificate-based, available only through exchange of certificates. Windows authentication between instances isn't supported.
106106
- Replication of user databases from SQL Server to Managed Instance is one-way. User databases from Managed Instance can't be replicated back to SQL Server.
107107
- Auto failover groups replication to secondary Managed Instance can't be used in parallel while operating the Managed Instance Link with SQL Server.
108+
- Replicated databases are not part of auto-backup process on SQL Managed Instance.
108109

109110
## Next steps
110111

articles/azure-sql/managed-instance/managed-instance-link-preparation.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,21 @@ SELECT @@VERSION
4949

5050
If your SQL Server version is lower than CU15 (15.0.4198.2), either install the minimally supported [CU15](https://support.microsoft.com/topic/kb5008996-cumulative-update-15-for-sql-server-2019-4b6a8ee9-1c61-482d-914f-36e429901fb6), or the current latest cumulative update. Your SQL Server instance will be restarted during the update.
5151

52+
### Create database master key in the master database
53+
54+
Create database master key in the master database by running the following T-SQL script.
55+
56+
```sql
57+
-- Create MASTER KEY
58+
USE MASTER
59+
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<strong_password>'
60+
```
61+
62+
To check if you have database master key, use follwing T-SQL script.
63+
64+
```sql
65+
SELECT * FROM sys.symmetric_keys WHERE name LIKE '%DatabaseMasterKey%'
66+
```
5267

5368
### Enable availability groups feature
5469

@@ -141,6 +156,20 @@ The following screenshot is an example of the expected outcome for a SQL Server
141156

142157
:::image type="content" source="./media/managed-instance-link-preparation/ssms-results-expected-outcome.png" alt-text="Screenshot showing expected outcome in S S M S.":::
143158

159+
### User database recovery mode and backup
160+
161+
All databases that are to be replicated via SQL Managed Instance link must be in full recovery mode and have at least one backup.
162+
163+
```sql
164+
-- Set full recovery mode for all databases you want to replicate.
165+
ALTER DATABASE [<DatabaseName>] SET RECOVERY FULL
166+
GO
167+
168+
-- Execute backup for all databases you want to replicate.
169+
BACKUP DATABASE [<DatabaseName>] TO DISK = N'<DiskPath>'
170+
GO
171+
```
172+
144173
## Configure network connectivity
145174

146175
For the Managed Instance link to work, there must be network connectivity between SQL Server and SQL Managed Instance. The network option that you choose depends on where your SQL Server resides - whether it's on-premises or on a virtual machine (VM).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Use the **New Managed Instance link** wizard in SQL Server Management Studio (SS
4242
To set up the Managed Instance link, follow these steps:
4343

4444
1. Open SQL Server Management Studio (SSMS) and connect to your instance of SQL Server.
45-
1. In **Object Explorer**, right-click your database, hover over **Azure SQL Managed Instance link** and select **Replicate database** to open the **New Managed Instance link** wizard:
45+
1. In **Object Explorer**, right-click your database, hover over **Azure SQL Managed Instance link** and select **Replicate database** to open the **New Managed Instance link** wizard. In case you are using a version of SQL Server that is not supported, this option will not be available in the context menu.
4646

4747
:::image type="content" source="./media/managed-instance-link-use-ssms-to-replicate-database/link-replicate-ssms-database-context-replicate-database.png" alt-text="Screenshot showing database's context menu option to replicate database after hovering over Azure SQL Managed Instance link.":::
4848

0 commit comments

Comments
 (0)