Обновление sql 2005 до 2012 инструкция пошаговая

RRS feed

  • Remove From My Forums
  • Question

  • User197122282 posted

    We have a database (Compatibility Level 90) running on SQL Server 2005 instance. We need to upgrade this database by moving it to an SQL Server 2012 instance. For the upgrade process, we are planning to perform the following steps:

    1. Backup the database on the 2005 instance

    2. Restore it on 2012 instance

    3. Set the compatibility level from 2005 (90) to 2012 (110)

    Please let me know if this approach is correct or needs further changes.

All replies

  • User77042963 posted

    Go ahead and just do it. It should work.

  • User1967761114 posted

    Hi kashifdotnet,

    According to your description, at first, you could understand the compatibility level with SQL server, see the following table.

                                      Compatibility level

    SQL Server 2000          80

    SQL Server 2005          90

    SQL Server 2008         100

    SQL Server 2012         110

    You could change the compatibility level by the following statements

    ALTER DATABASE [DBName] SET COMPATIBILITY_LEVEL = 110;

    In your case, the database is in 2005(compatibility level=90), when you restore to 2012
    there has no problem because of the SQL Server is backward compatible, 

    For more details about how to backup and restore database, you could refer to the following link.

    https://docs.microsoft.com/en-us/sql/relational-databases/backup-restore/back-up-and-restore-of-sql-server-databases

    If you have any other questions, please feel free to contact me any time.

    Best Regards

    Even

  • User77042963 posted

    Hi kashifdotnet,

    According to your description, at first, you could understand the compatibility level with SQL server, see the following table.

                                      Compatibility level

    SQL Server 2000          80

    SQL Server 2005          90

    SQL Server 2008         100

    SQL Server 2012         110

    You unnecessary to change the compatibility level by manually, it will auto changed when you restore database.

    In your case, the database is in 2005(compatibility level=90), when you restore to 2012(SQL Server is backward compatible), the compatibility level will auto changed to 110.

    Are these statements are true? I remember that the restored database holds their old compatibility level property.

  • User1967761114 posted

    Hi limno,

    Sorry, I had been modified my answer, thanks for you to indicate my error.

    Best Regards

    Even

  • User77042963 posted

    Hi limno,

    Sorry, I had been modified my answer, thanks for you to indicate my error.

    Best Regards

    Even

    You are welcome.

  • User197122282 posted

    EvenMa, Limno, thanks for replying. Many sites suggest running the
    SQL Server Upgrade Adviser before an upgrade. For me, the adviser came back with the following two issues:

    1. Full-text Search has changed since SQL Server 2008

    2. After upgrade, compatibility level 60, 65… will be set to 90 (90 obviously remains at 90)

    If I am not mistaken, non of the above is a real issue. My only concern is that after the upgrade, if I change the compatibility level to 110 (to take advantage of newer features), is that going to affect the database in any way.

    Further, many sites talk about ‘after running the SQL Server Upgrade Adviser,
    perform the upgrade
    ‘. As far as I know, there are 2 possible ways to upgrade a database including 1) Backup and Restore 2) Detach and Attach. Does the upgrade process refer to something different?

    One more question. What are the features available in CL 110 but not available in CL 90.

    Thanks all.

Profile picture for user Олег

SQL Server Upgrade Technical Reference Guide

Автор:
Ron Talmage, Nigel Sammy, Allan Hirt, Herbert Albert, Antonio Soto, Danilo Dominici, Regis Baccaro, Milos Radivojevic, Jesus Gil, Dejan Sarka, Johan Ahlen, Simran Jindal, Paul Turley, Craig Utley, Larry Barnes, Pablo Ahumada

Это техническое руководство содержит описание процедуры обновления экземпляров SQL Server 2005, SQL Server 2008 и SQL Server 2008 R2 до версии SQL Server 2012.

Для беспрепятственного обновления до версии SQL Server 2012 необходимо разработать план действий с учетом сложностей, связанных с вашими приложениями. Как и в рамках любого другого проекта в сфере ИТ, разработка и последующее тестирование плана способствуют успеху. Игнорируя процесс планирования, вы рискуете столкнуться с трудностями, которые могут привести к задержке или невозможности обновления.

В этом документе описан процесс планирования и тестирования обновления существующих экземпляров SQL Server 2005, 2008 и 2008 R2 до версии SQL Server 2012 с учетом технических особенностей. Даны рекомендации
по подготовке и планированию, а также описание задач, которые придется решать до и после обновления. Рассматриваются все компоненты SQL Server, каждому из них посвящена отдельная глава.

Настоящий документ выступает в роли дополнения для электронной документации по SQL Server 2012. Он не может заменить электронную документацию по SQL Server или статьи базы знаний Майкрософт. Читатель увидит множество ссылок на электронную документацию по SQL Server и статьи базы знаний Майкрософт. В таких случаях информация, содержащаяся в настоящем документе, служит контекстом, на основании которого вы должны решить, стоит ли тратить время на прочтение статьи, ссылка на которую здесь приводится. При наличии разночтений между настоящим документом и статьями, на которые даны ссылки, приоритет отдается статьям.

Ссылки

Библиотека системного администратора

  • Remove From My Forums
  • Question

  • We updated our SQL Express software from 2005 to 2012 and it is working fine.  We have successfully mounted the database using SQL Server 2012 Management Studio Express.  However, it appears the database we are using is still in 2005 format and
    is still affected by the 4GB size limit.

    How do you upgrade the database file itself from 2005 to 2012?

Answers

  • I would probably make a clean installation of SQL Server Express 2012 and keep SQL Server 2005 Express installed for now. Only once you installed the 2012 version, migrated your databases, re-pointed your applications and make sure all is working correctly,
    then you may uninstall 2005 version.


    • Marked as answer by

      Wednesday, September 2, 2015 12:02 AM

  • In General please follow the below steps before starting migration….  and decide which method are you going to use… inplace or side by side…

    http://blogs.technet.com/b/francesco_diaz/archive/2008/12/16/in-place-vs-side-by-side-upgrade.aspx

    1. Run upgrade adviser on the databases for the instance you want to upgrade.
    2. If any issues are found, talk to your dev team/ Vendor for fixing the same.
    3. If issues are fixed proceed with the actual upgrade. — Do check for the other dependencies on the database which might effect the functionality if the instance gets upgraded or something like that.
    4. Get the downtime for the database.
    5. Create the latest full backup of the database — any other strategy will also work, just make sure you can recover the database.
    6. Take a clone of the server if it’s a virtual server to roll back any changes.
    7. Run the upgrade on the sql 2005 instance from the 2012 set up. — do check the pre-requirements for upgrade to sql 2012.
    8. If everything is fine then you have an upgraded instance.
    9. Also check the compatibility of the databases.
    10. If all is fine then congrats you have upgraded your sql server instance.

    Supported versions :—

    did you checked your sql 2005 service pack ?

    SQL Server 2012 supports upgrade from the following versions of SQL Server:

    • SQL Server 2005 SP4 or later

    • SQL Server 2008 SP2 or later

    • SQL Server 2008 R2 SP1 or later

    https://technet.microsoft.com/en-us/library/ms143393%28v=sql.110%29.aspx


    Raju Rasagounder Sr MSSQL DBA

    • Marked as answer by
      MyGposts
      Wednesday, September 2, 2015 12:01 AM

Could anyone please help me out in knowing the step by step process to be done to upgrade the database from SQL Server 2005 to SQL Server 2012?

I already surfed about the process but I am not able to understand the complete idea and I don’t know on how to start this process.

Could some one please help me on this?

marc_s's user avatar

marc_s

727k174 gold badges1325 silver badges1454 bronze badges

asked May 7, 2015 at 2:07

bl1234's user avatar

0

Your question is rather confusing with all different versions of SQL Server — the title mentions 2005 and 2012, the body 2005 and 2008 …..

Whichever : basically, you need to perform those steps:

  1. Backup your SQL Server 2005 database (results in a .bak file)
  2. Copy that .bak file to your new SQL Server 2008 / 2012 machine and restore it
  3. Set the database compatibility level once you’re on SQL Server 2012 using

    ALTER DATABASE (yourdb) SET COMPATIBILITY_LEVEL = 110
    
  4. Done!

You can go directly from SQL Server 2005 to SQL Server 2012 — no intermediate step necessary (you cannot do this for SQL Server 2000 anymore, though)

answered May 7, 2015 at 4:51

marc_s's user avatar

marc_smarc_s

727k174 gold badges1325 silver badges1454 bronze badges

1

Добрый день, имеется Windows Server 2008 SP2, на нем стоит SQL Server 2005 Express, требуется обновить его до 2012, изучив некоторую часть документации понял, что до обновления до 2012 2003й SQL сервер должен быть обновлен до SP4. 

Обновление через центр обновлений завершилось с ошибкой и я попробовал обновиться вручную, скачал х86 и х64 версии.

Запустил установщик и на этапе выбора компонентов для обновления доступны только «Собственный клиент SQL Server», «Обратная совместимость» и «Microsoft SQL Server, службы синхронизации контроля версий», в том
же окне при выделении компонента указана его архитектура, вышеописанные оказались x64, всё ок, а вот остальные х86 ( Службы Database Services, Клиентские компоненты ) и пометка к ним:

«Программа установки не может обновить Клиентские компоненты x86 на этом компьютере. Чтобы продолжить, запустите программу установки пакета обновления для платформы x86.»

Ну ок, подумал я и попробовал обновить доступные компоненты, получил такой вывод:

Собственный клиент SQL Server- ошибка

Обратная совместимость- завершено

Microsoft SQL Server, службы синхронизации контроля версий- завершено

По ошибке собственного клиента есть лог, выложу его в следующем сообщении т.к. он очень большой.

Далее запускаю установщик x86, получаю сообщение, что 32- битная версия пакета не может быть установлена в 64- битной системе. Как быть?

Понравилась статья? Поделить с друзьями:
  • Приложение к инструкции по охране труда
  • Руководство по эксплуатации трубовоза
  • Fg wilson dcp 10 инструкция на русском
  • Ford focus 2 рестайлинг инструкция по эксплуатации
  • Синергетик для очистки труб инструкция по применению