SQL SERVER 2012 TO 2017 data mirror

Shri 21 Reputation points
2020-11-13T23:34:38.503+00:00

Hi Expert,

How will data mirror SQL Server Application from one server to another . How to check which server machine depended on this server and how will move it from sql server 2012 to sql server 2017 with all dependency, jobs, agents etc together

os windows server 2008 to win server 2016

Shree

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,004 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
538 questions
{count} votes

Accepted answer
  1. Jeffrey Williams 1,896 Reputation points
    2020-11-14T17:18:03.73+00:00

    You will not be able to setup 'mirroring' in your current environment. See this document: https://learn.microsoft.com/en-us/sql/sql-server/failover-clusters/windows/upgrade-sql-server-failover-cluster-instance-2008-2012?view=sql-server-ver15

    To be able to setup mirroring (availability group) you need to have a cluster and none of the scenarios allow for moving from 2008. This document shows how to perform a rolling upgrade: https://learn.microsoft.com/en-us/windows-server/failover-clustering/cluster-operating-system-rolling-upgrade

    This also shows what can/cannot be done: https://sqlha.com/2019/08/15/ags-and-wsfc-os-rolling-upgrades-what-works-and-what-doesnt/

    Basically, this leaves you with a backup/restore option as the best and safest route to upgrade. You can reduce the amount of downtime using the following strategy:

    1. Backup database on old system
    2. Restore database to new system with norecovery (can be done several hours before cutover)
    3. Differential backup on old system about 1 hour before cutover
    4. Restore differential backup to new system with norecovery
    5. Restore transaction log backups from old system to new system from differential backup forward
    6. Perform tail-log backup on old system (will take database offline on old system - if not, manually take database offline)
    7. Restore final transaction log to new system
    8. Restore database with recovery

    The downtime will be minimal - but you still need to have that downtime. All systems/applications connecting to the old system will need to be updated to connect to the new system. You could shut down the old system and update DNS so the old name now points to the new IP address - or you can setup client aliases - or make changes to the hosts file on each device...

    Performing a backup/restore will not lose any data...unless you allow the applications to continue filing data into the old system. This is why you need to take the database offline...it will prevent any additional data from being filed into that database during the migration.

    Even if you somehow get mirroring working...the applications connections must be updated to use the new system or the listener, which will require a downtime for the application to insure all connections have been moved.

    1 person found this answer helpful.
    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Shri 21 Reputation points
    2020-11-14T15:09:26.77+00:00

    Hi Expert,

    Yes it is all about migration sql server 2012 -2017. can you give more clarity about this dbatool .is it comes with sql server 2017 and will it cover, jobs,linked server,mail profile, proxies etc

    Shree


  2. Shri 21 Reputation points
    2020-11-14T15:45:43.847+00:00

    Hi Expert,

    it would be used for finance company . is it freeware ? paid or come with SQL Server?

    I do not think i can use as it is without Microsoft confirms it.

    Please tell me about microsoft inbuilt tool. like data mirror - will it work with sql server 2012 to sql server 2017 or any other suggestion


  3. Shri 21 Reputation points
    2020-11-14T16:14:28.76+00:00

    Hi,
    i can not see any Microsoft recognition on the portal. I afraid can not download.

    Expecting other solutions

    Shree


  4. Shri 21 Reputation points
    2020-11-14T17:54:20.373+00:00

    Hi Expert,

    Can you help me in explaining this High availability group in sql databse and how to find it and how it will affect to mirroring in database. Any query that we can find high availability group

    To be able to setup mirroring (availability group) you need to have a cluster and none of the scenarios allow for moving from 2008. This document shows how to perform a rolling upgrade: https://learn.microsoft.com/en-us/windows-server/failover-clustering/cluster-operating-system-rolling-upgrade


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.