Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to convert Sql server 2000 database backup file to Sql server 2005 Express Edition .mdf file.

How to convert Sql server 2000 database backup file to Sql server 2005 Express Edition .mdf file.

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorial
4 Posts 3 Posters 0 Views 1 Watching
  • 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.
  • P Offline
    P Offline
    Paramhans Dubey
    wrote on last edited by
    #1

    Hi All, Is it possible to convert SQL Server 2000 database file to Sql Server 2005 .mdf file. If it is possible then please tell me how to do it. Thanx in Advance. Regards, Paramhans Dubey.

    P M 2 Replies Last reply
    0
    • P Paramhans Dubey

      Hi All, Is it possible to convert SQL Server 2000 database file to Sql Server 2005 .mdf file. If it is possible then please tell me how to do it. Thanx in Advance. Regards, Paramhans Dubey.

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      You should be able to attach the SQL 2000 database file to SQL 2005. Have you tried attaching it?

      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      1 Reply Last reply
      0
      • P Paramhans Dubey

        Hi All, Is it possible to convert SQL Server 2000 database file to Sql Server 2005 .mdf file. If it is possible then please tell me how to do it. Thanx in Advance. Regards, Paramhans Dubey.

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        Yes, you can restore a SQL Server 2000 database backup to a SQL Server 2005 server. You simply use the normal Restore features - use Management Studio or the RESTORE DATABASE command. The compatibility level for the database will be 80 (i.e. SQL Server 2000 compatible) by default. If you want to take full advantage of SQL Server 2005 features, you will need to use sp_dbcmptlevel to set the compatibility level to 90.

        Stability. What an interesting concept. -- Chris Maunder

        P 1 Reply Last reply
        0
        • M Mike Dimmick

          Yes, you can restore a SQL Server 2000 database backup to a SQL Server 2005 server. You simply use the normal Restore features - use Management Studio or the RESTORE DATABASE command. The compatibility level for the database will be 80 (i.e. SQL Server 2000 compatible) by default. If you want to take full advantage of SQL Server 2005 features, you will need to use sp_dbcmptlevel to set the compatibility level to 90.

          Stability. What an interesting concept. -- Chris Maunder

          P Offline
          P Offline
          Paramhans Dubey
          wrote on last edited by
          #4

          hi friends, As I have mentioned earlier I m using SQL Server 2005 Express Edition, So I don't have Management Studio. I tried following restore command : "Restoring SQL Server 2000 Database *.bak backup file to SQL Server 2005 Express Edition *.mdf file RESTORE filelistonly FROM disk = 'C:\Documents and Settings\Administrator\Desktop\ImageDB.bak' RESTORE DATABASE image FROM disk = 'C:\Documents and Settings\Administrator\Desktop\ImageDB.bak' WITH move 'ImageDB' TO 'C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Image.mdf', move 'Image_log' TO 'C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Image.ldf'" But I am unable to find any mdf or ldf file in the directory "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1". I also searched the directory ” C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data” but that was also of no use. Regards, Paramhans Dubey.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups