database problem. i need ur help .............

Last post 05-13-2008 8:36 PM by devcalpoly. 4 replies.

Sort Posts:

  • database problem. i need ur help .............

    05-12-2008, 3:37 AM

     

     the database works fine in my com but when i make a copy of the mdf files and transfer it to another com ,the database could not be connected,

    the database created has an extension of .dbo, does this mean that the database is exclusively owned by my com so it cant be used by any other coms??

  • Re: database problem. i need ur help .............

    05-12-2008, 4:36 AM
    • Loading...
    • cdpandya1
    • Joined on 05-17-2007, 9:59 AM
    • Ahmedabad
    • Posts 62

     You need to backup your DB from source PC and restore the same on the destination machine.

    Chintan
    Please remember to 'Mark as Answer' if this post answered your question!
  • Re: database problem. i need ur help .............

    05-12-2008, 4:46 AM

    that is what i did,,i tried to attach the database to another workstation but the connection failed as the error msgs indicated that the autonamed database is not connected successfully..

     

  • Re: database problem. i need ur help .............

    05-12-2008, 6:30 AM
    Answer

    The database should have a MDF extension.  Moving or copying it can be done, but you'll need to tell us the database you're coming from, what you're going to and the error you get if you expect any real help.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: database problem. i need ur help .............

    05-13-2008, 8:36 PM
    Answer
    • Loading...
    • devcalpoly
    • Joined on 10-08-2007, 10:03 PM
    • Southern California
    • Posts 212

     If you have access to Management Studio or Query Analyzer (in 2000), run the following query:

    Server 1:

    BACKUP DATABASE <databaseName>
    TO DISK = '<path>'   
    -- (for example: c:\mydb.bak)
    GO


    go to that path and copy that bak file to second server.

    Server 2:

    RESTORE DATABASE <database>
    FROM DISK = '<path>'         
    -- (for example: c:\mydb.bak)
    GO

    That should do it.

    Dev
Page 1 of 1 (5 items)