mdf file

  • I have recieved a mdf file from one our clients.What is the better way to restore it.

    Thanks

  • Since you don't have the .ldf file (log file), you will have to use the procedure:

    sp_attach_single_db_file

    See the Books OnLine for more information on the usage and syntax.

    -SQLBill

  • I think I can use sp_attach_single_db_file

    only when I detach the file using sp_detach_db.

  • there's also sp_attach_db which has more parameters that you don't need to fill in. In the enterprise manager for SQL2k you can just right click on the "Databases" object under your server and select "All Tasks," then "Attach Database...," then browse to your MDF file.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply