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. question regarding to SQL SERVER

question regarding to SQL SERVER

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorialquestion
5 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.
  • E Offline
    E Offline
    eshban284
    wrote on last edited by
    #1

    1)How to make (.mdf) file in Sql Server (use to deploy database on other computer) Actually i want to deploy my SQL database along with its data to other computer EsHbAn BaHaDuR

    C 1 Reply Last reply
    0
    • E eshban284

      1)How to make (.mdf) file in Sql Server (use to deploy database on other computer) Actually i want to deploy my SQL database along with its data to other computer EsHbAn BaHaDuR

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

      Make a backup of the database and restore it on the new computer.


      My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

      S 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Make a backup of the database and restore it on the new computer.


        My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

        S Offline
        S Offline
        si_69
        wrote on last edited by
        #3

        Would be best to attach and detach http://www.databasejournal.com/features/mssql/article.php/2224361[^]

        C 1 Reply Last reply
        0
        • S si_69

          Would be best to attach and detach http://www.databasejournal.com/features/mssql/article.php/2224361[^]

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

          si_69 wrote: Would be best to attach and detach May I ask why? The article you link to does at least tell the user how to get round the main problem of detaching and reattaching (loss of users - which is because the logins are stored in the Master database and referenced in the individual databases and the uids may be different across servers). However, I've never had that problem with restoring a backup.


          My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

          S 1 Reply Last reply
          0
          • C Colin Angus Mackay

            si_69 wrote: Would be best to attach and detach May I ask why? The article you link to does at least tell the user how to get round the main problem of detaching and reattaching (loss of users - which is because the logins are stored in the Master database and referenced in the individual databases and the uids may be different across servers). However, I've never had that problem with restoring a backup.


            My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

            S Offline
            S Offline
            si_69
            wrote on last edited by
            #5

            Colin Angus Mackay wrote: May I ask why? minimal downtime and no data loss,it is best to move it by detaching and then reattaching the database on the new server. The database will be offline during the move but it is better to have it offline than to miss transactions when backing up and then restoring the database on the new server.

            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