• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

SQL server

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    SQL server

    Whats the best way to create a new db that is based upon an extant one.

    create from a backup
    or
    detatch , rename, attach



    tia
    (\__/)
    (>'.'<)
    ("")("") Born to Drink. Forced to Work

    #2
    Restore backup to new database name?
    Last edited by spoons; 20 November 2008, 14:25. Reason: spoolchucker failure

    Comment


      #3
      Yeah just restore. But if you are moving to another DB instance remember that you will have users in the database that dont exist in the master DB (orphaned users)

      There is a stored proc you can use to link these up after you create the new logins.

      Something like sp_restore_orphaned_users

      Comment


        #4
        thanks both
        merci bow coops.



        someone has been sh itting me


        (\__/)
        (>'.'<)
        ("")("") Born to Drink. Forced to Work

        Comment

        Working...
        X