Results 1 to 3 of 3

Thread: SQL Database Recovery

  1. #1
    Join Date
    May 2003
    Posts
    1

    Unhappy SQL Database Recovery

    I just had to reload my windows 2000 server because of corrupt files. I was able to ghost my data across to another disk. Unfortunately, i lost my database backup files but still have the .mdf and .ldf files. Is there any way of restoring these databases using these files?

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    sp_attach_db

    and

    sp_attach_single_file_db

    refer bol for the above these two commands

  3. #3
    Join Date
    Jan 2003
    Location
    UK
    Posts
    277
    unless you need the ldf file you can just attach the mdf and a new minimum size ldf will be auto created for you.

    A good if unorthodox way of clearing out a massive log file as well. Make sure you don't need anything that may be in it though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •