Appearance
Run SQL Migration Wizard ​
Overview ​
On the MS SQL DBMS managed and DBA mode services it is now possible to migrate to new instance in one single action. Target server must be prepared beforehand.
Migration options ​
The feature will be available for Managed DBMS, Managed DBMS DBA mode and Managed SQL AlwaysOn. The table below illustrate which actions are possible depending on the service type. .
| Service | Possible Target |
|---|---|
| Managed MS SQL Server 2016 | Managed MS SQL Server 2019, Managed MS SQL AlwaysOn 2019 |
| Managed MS SQL Server 2017 | Managed MS SQL Server 2019, Managed MS SQL AlwaysOn 2019 |
| Managed MS SQL AlwaysOn 2016 | Managed MS SQL Server 2019, Managed MS SQL AlwaysOn 2019 |
| Managed MS SQL AlwaysOn 2017 | Managed MS SQL Server 2019, Managed MS SQL AlwaysOn 2019 |
| Managed MS SQL DBMS 2016 DBA mode | Managed MS SQL DBMS 2019 DBA mode |
| Managed MS SQL DBMS 2017 DBA mode | Managed MS SQL DBMS 2019 DBA mode |
Requirements ​
| Requirement | Explanation | Check time |
|---|---|---|
| Collation | Target server needs to have same Collation as source server. | On action select. |
| No user DB on target | Target server must not contain any user databases, otherwise pre-checks will fail. | On action start. |
| Space Target | Target D, E drive must be bigger than used space on source instance. | On action start. |
| Space Source | Source X drive big enough to sustain export of all databases | On action start. |
Execution steps ​
1.) Pre-migration checks: Checks executed on the source and target instance
2.) Preparation of source instance
3.) Backup of source instance (Configuration, database objects and databases)
4.) Restore of configuration on target instance
5.) Transfer of databases and users to target instance
6.) Maintenance tasks on target instance after migration
7.) Cleanup on target
Source instance notes ​
During migration source instance is not destroyed, but it is modified:
1.) DB's are put in read only mode
2.) DB's are removed from AO context
This can be reversed but has to be done manually.
Notes on AlwaysOn ​
Backup of all databases is done to one node from AO Cluster. (NOTE: X: Drive size!) User from primary node is taken as "master" and replicated to secondary replica.
If login on target exists, it will not be overwritten, but it will be remapped.
Fallback scenario ​
On your own: ​
Via SSMS application you can set databases back to Read-Write mode via 2nd Day action you can then return DB's to AO if needed.
Incident ticket ​
If migration fails, please open incident ticket so we can invetigate the reson for failure.
If migration wizard did not complete OK, and it did not stop on pre-checks, incident ticket is needed before next try!
