ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Recovering SQL Server 2005 Databases

    IT Discussion
    13
    28
    1.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Let's assume no hardware failure. Is there a good path? We have the data, intact. It's just really old and needs to be updated.

      notverypunnyN dbeatoD 2 Replies Last reply Reply Quote 0
      • ObsolesceO
        Obsolesce
        last edited by

        Why can't you restore the DB to a newer SQL server?

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • IRJI
          IRJ
          last edited by

          @jt1001001 posted a reasonable and simple solution

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Obsolesce
            last edited by

            @Obsolesce said in Recovering SQL Server 2005 Databases:

            Why can't you restore the DB to a newer SQL server?

            Officially, at least, MS says that that doesn't work. Or that it requires doing it many times. Hoping that there is a known, simpler solution 🙂

            dbeatoD 1 Reply Last reply Reply Quote 0
            • notverypunnyN
              notverypunny @scottalanmiller
              last edited by

              @scottalanmiller said in Recovering SQL Server 2005 Databases:

              Let's assume no hardware failure. Is there a good path? We have the data, intact. It's just really old and needs to be updated.

              FWIW I'd mount on 2005 then backup/restore on the current version of your choice.

              https://dba.stackexchange.com/questions/222868/upgrading-sql-server-2005-to-2016

              1 Reply Last reply Reply Quote 1
              • dbeatoD
                dbeato @scottalanmiller
                last edited by

                @scottalanmiller said in Recovering SQL Server 2005 Databases:

                Let's assume no hardware failure. Is there a good path? We have the data, intact. It's just really old and needs to be updated.

                There is not good path here. Recovering MDF is painful and slow. I have had to do it with current ProSystems Databases and let me tell you it is not fun.

                1 Reply Last reply Reply Quote 0
                • dbeatoD
                  dbeato @scottalanmiller
                  last edited by

                  @scottalanmiller said in Recovering SQL Server 2005 Databases:

                  @Obsolesce said in Recovering SQL Server 2005 Databases:

                  Why can't you restore the DB to a newer SQL server?

                  Officially, at least, MS says that that doesn't work. Or that it requires doing it many times. Hoping that there is a known, simpler solution 🙂

                  It does work, you need to mount it and as long as the newer SQL Server is a higher version it should work fine. You cannot go back to the old versions. Now the bigger question is what program used this Database or what was the interaction to this database. That is the biggest consideration here.

                  scottalanmillerS 1 Reply Last reply Reply Quote 6
                  • 1
                    1337
                    last edited by 1337

                    Assuming here you have Visual Studio/MSDN subscription or similar so you have iso-files for everything old.

                    This is how I do it:

                    1. Install virtualbox on your desktop
                    2. Install old OS on virtualbox. (OS pick might depend on 2005 express or standard)
                    3. Install old SQL Server on machine
                    4. Copy over old db files
                    5. Backup database to *.bak file
                    6. Install new OS+SQL Server on new server
                    7. Restore backup

                    If you use shared folders in virtualbox you don't need to worry about setting up any network on the VM. Shared folders let you share files between the host and the VM.

                    JaredBuschJ 1 Reply Last reply Reply Quote 2
                    • JaredBuschJ
                      JaredBusch @1337
                      last edited by

                      @Pete-S said in Recovering SQL Server 2005 Databases:

                      Assuming here you have Visual Studio/MSDN subscription or similar so you have iso-files for everything old.

                      This is how I do it:

                      1. Install virtualbox on your desktop
                      2. Install old OS on virtualbox. (OS pick might depend on 2005 express or standard)
                      3. Install old SQL Server on machine
                      4. Copy over old db files
                      5. Backup database to *.bak file
                      6. Install new OS+SQL Server on new server
                      7. Restore backup

                      If you use shared folders in virtualbox you don't need to worry about setting any network on the VM.

                      This is how i always deal with things like this. Have not had to do it for 4-5 years. but I last did it was an older SQL2005 MDF file. I spun up a VM with Server 2008R2, installed SQL 2005, reconnected everything, then made a backup within SQL Server Management Studio.

                      That backup was then restored to SQL Server 2014

                      1 Reply Last reply Reply Quote 2
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        We got a 2008 R2 that we tracked down. And they were able to get backup files rather than the original database files only, so looking like it will be much easier.

                        1 notverypunnyN 2 Replies Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @dbeato
                          last edited by

                          @dbeato said in Recovering SQL Server 2005 Databases:

                          @scottalanmiller said in Recovering SQL Server 2005 Databases:

                          @Obsolesce said in Recovering SQL Server 2005 Databases:

                          Why can't you restore the DB to a newer SQL server?

                          Officially, at least, MS says that that doesn't work. Or that it requires doing it many times. Hoping that there is a known, simpler solution 🙂

                          It does work, you need to mount it and as long as the newer SQL Server is a higher version it should work fine. You cannot go back to the old versions. Now the bigger question is what program used this Database or what was the interaction to this database. That is the biggest consideration here.

                          The application supports at least SQL Server 2017, which we have.

                          1 Reply Last reply Reply Quote 0
                          • 1
                            1337 @scottalanmiller
                            last edited by

                            @scottalanmiller said in Recovering SQL Server 2005 Databases:

                            We got a 2008 R2 that we tracked down. And they were able to get backup files rather than the original database files only, so looking like it will be much easier.

                            Forget about the old OS and try restoring the old backup files directly into SQL Server 2017 then. It should work.

                            1 1 Reply Last reply Reply Quote 0
                            • 1
                              1337 @1337
                              last edited by 1337

                              @Pete-S said in Recovering SQL Server 2005 Databases:

                              @scottalanmiller said in Recovering SQL Server 2005 Databases:

                              We got a 2008 R2 that we tracked down. And they were able to get backup files rather than the original database files only, so looking like it will be much easier.

                              Forget about the old OS and try restoring the old backup files directly into SQL Server 2017 then. It should work.

                              To restore the old backup I believe you need SQL Server Management Studio. I don't think you can do it with the command line tools. I haven't tried though.

                              1 Reply Last reply Reply Quote 0
                              • NetworkNerdN
                                NetworkNerd
                                last edited by

                                I was thinking there's some kind of per-database compatibility mode that allows the backward compatibility with older applications that need to access the database. But it's also been a while since I've done much with SQL Server.

                                JaredBuschJ 1 Reply Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch @NetworkNerd
                                  last edited by

                                  @NetworkNerd said in Recovering SQL Server 2005 Databases:

                                  I was thinking there's some kind of per-database compatibility mode that allows the backward compatibility with older applications that need to access the database. But it's also been a while since I've done much with SQL Server.

                                  There is. But that would have nothing to do with restoring.

                                  It may prevent the legacy application from talking to the restored database though.

                                  1 Reply Last reply Reply Quote 0
                                  • notverypunnyN
                                    notverypunny @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Recovering SQL Server 2005 Databases:

                                    We got a 2008 R2 that we tracked down. And they were able to get backup files rather than the original database files only, so looking like it will be much easier.

                                    Good news, much less pain than having to deal with mounting on 2005 and then backup/restore to current.

                                    1 Reply Last reply Reply Quote 0
                                    • O
                                      oliveryuan
                                      last edited by

                                      @scottalanmiller said in Recovering SQL Server 2005 Databases:

                                      Anyone had any luck mounting SQL Server 2005 MDF/LDF to a new SQL Server version
                                      You can move SQLServer 2005 to a new Server version by following this guide: https://solutioncenter.apexsql.com/restore-sql-server-backup-to-a-newer-version-of-sql-server/

                                      1 Reply Last reply Reply Quote 0
                                      • 1
                                      • 2
                                      • 2 / 2
                                      • First post
                                        Last post