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. Export DB from Sql Server 2005 Express

Export DB from Sql Server 2005 Express

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
8 Posts 4 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.
  • K Offline
    K Offline
    kallileo
    wrote on last edited by
    #1

    I have Sql Server 2005 Express installed in my PC and have some database in it. I also have a Laptop where I installed Sql Server 2005 Express too. Is possible to transfer the databases from the my desktop PC to the laptop Sql Server 2005 Express?

    C A 2 Replies Last reply
    0
    • K kallileo

      I have Sql Server 2005 Express installed in my PC and have some database in it. I also have a Laptop where I installed Sql Server 2005 Express too. Is possible to transfer the databases from the my desktop PC to the laptop Sql Server 2005 Express?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Make a backup on your PC then restore it to the laptop.


      Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

      J 1 Reply Last reply
      0
      • K kallileo

        I have Sql Server 2005 Express installed in my PC and have some database in it. I also have a Laptop where I installed Sql Server 2005 Express too. Is possible to transfer the databases from the my desktop PC to the laptop Sql Server 2005 Express?

        A Offline
        A Offline
        Aaron VanWieren
        wrote on last edited by
        #3

        You could also detach the database and then copy the mdf and ldf files over to the new machine. You will have to reattach the files on the main machine and the laptop. The whole point of detach and reattach is to provide a means to share databases and it is allot simpler than backing up and restore method.

        _____________________________________________________________________ Our developers never release code. Rather, it tends to escape, pillaging the countryside all around. The Enlightenment Project (paraphrased comment) Visit Me at GISDevCafe

        C 1 Reply Last reply
        0
        • A Aaron VanWieren

          You could also detach the database and then copy the mdf and ldf files over to the new machine. You will have to reattach the files on the main machine and the laptop. The whole point of detach and reattach is to provide a means to share databases and it is allot simpler than backing up and restore method.

          _____________________________________________________________________ Our developers never release code. Rather, it tends to escape, pillaging the countryside all around. The Enlightenment Project (paraphrased comment) Visit Me at GISDevCafe

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Aaron VanWieren wrote:

          The whole point of detach and reattach is to provide a means to share databases

          Move, not share. The whole point of a server based database system is that you don't end up with multiple copies of a database and end up with a complete mess because you no longer know which is the definitive version. This happens a lot with Access.

          Aaron VanWieren wrote:

          it is allot simpler than backing up and restore method

          Well, with backup and restore you only have one file to deal with. With detach and attach you have to deal with a minimum of two files and, depending on how your database is set up, it could be a lot more than that. Not only that but the database could span various disks. Heck, it is even possible that SQL Server just takes over an entire disk - so there are no files to detach at all, just a physical disk.


          Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

          A 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Aaron VanWieren wrote:

            The whole point of detach and reattach is to provide a means to share databases

            Move, not share. The whole point of a server based database system is that you don't end up with multiple copies of a database and end up with a complete mess because you no longer know which is the definitive version. This happens a lot with Access.

            Aaron VanWieren wrote:

            it is allot simpler than backing up and restore method

            Well, with backup and restore you only have one file to deal with. With detach and attach you have to deal with a minimum of two files and, depending on how your database is set up, it could be a lot more than that. Not only that but the database could span various disks. Heck, it is even possible that SQL Server just takes over an entire disk - so there are no files to detach at all, just a physical disk.


            Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

            A Offline
            A Offline
            Aaron VanWieren
            wrote on last edited by
            #5

            Good points. Sorry in the over simplification. It really depends on the database specifics.

            _____________________________________________________________________ Our developers never release code. Rather, it tends to escape, pillaging the countryside all around. The Enlightenment Project (paraphrased comment) Visit Me at GISDevCafe

            1 Reply Last reply
            0
            • C Colin Angus Mackay

              Make a backup on your PC then restore it to the laptop.


              Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

              J Offline
              J Offline
              Jerry Hammond
              wrote on last edited by
              #6

              Colin Angus Mackay wrote:

              Make a backup on your PC then restore it to the laptop.

              Is this a better method than detach and attach?

              "We are all repositories for genetically-encoded information that we're all spreading back and forth amongst each other, all the time. We're just lousy with information." - Neal Stephenson

              C 1 Reply Last reply
              0
              • J Jerry Hammond

                Colin Angus Mackay wrote:

                Make a backup on your PC then restore it to the laptop.

                Is this a better method than detach and attach?

                "We are all repositories for genetically-encoded information that we're all spreading back and forth amongst each other, all the time. We're just lousy with information." - Neal Stephenson

                C Offline
                C Offline
                Colin Angus Mackay
                wrote on last edited by
                #7

                Jerry Hammond wrote:

                Is this a better method than detach and attach?

                I would say so. Apart from anything else, you only have one file to transfer.


                Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                J 1 Reply Last reply
                0
                • C Colin Angus Mackay

                  Jerry Hammond wrote:

                  Is this a better method than detach and attach?

                  I would say so. Apart from anything else, you only have one file to transfer.


                  Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

                  J Offline
                  J Offline
                  Jerry Hammond
                  wrote on last edited by
                  #8

                  Thanks. My knee-jerk thought was to detach and attach, but upon reading your explanation further down in this thread I undertsand now why it would not be the optimum choice of action.

                  "We are all repositories for genetically-encoded information that we're all spreading back and forth amongst each other, all the time. We're just lousy with information." - Neal Stephenson

                  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