Retrieving data from DAT file

  • I have a 6.5 server that had the master DB rebuilt. This server also had a secondary DB. When the master was rebuilt all info for the secondary DB was lost but I still have the DAT files. Is there any way to recover the data from these files?

    Thanks,

    Pat Russell

  • To the best of my knowledge the answer is no.

  • Okay, thank you.

  • I think Antares686 is right. Have you no backup of master prior to rebuild?

    However, having a really surreal idea.

    MAKE A COMPLETE BACKUP OF SQL (Master,etc.)

    Make copy of the DAT file (a) for backup (and peace of mind).

    Rename the DAT file (a) as 'something else' (b).

    Create a new database with the same name as the original DAT (a).

    Shutdown SQL Server.

    Delete the DAT file you just created.

    Rename (b) back to (a)

    Startup SQL Server.

    I do not know if this will work as I do not know what information 6.5 keeps where. It might complain a lot or corrupt files!!!

    MAKE SURE YOU DO BACKUPS AND COPIES FIRST.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • The correct procedure is to restore your master database if your data files are still in the right place then it should all be back as normal.

    The second is the fudge above of tricking the server into thinking the database is there by creating a new one and replacing its files

    Simon Sabin

    Co-author of SQL Server 2000 XML Distilled

    http://www.amazon.co.uk/exec/obidos/ASIN/1904347088


    Simon Sabin
    SQL Server MVP

    http://sqlblogcasts.com/blogs/simons

  • There is a lot to restoring a 6.x database. You have to recreate the database device in the same manner it was create perviously, step by step, from it's smallest size thru each growth and to the final size. It has to be exact from what I recall (didn't ever need to do) a information is stored about the device in master.

  • Create a 6.5 with exactly the same device names( and does not have too be in the sdame location ), your DB name must also be the same as the original DB. Stop SQL Server. Copy the DAT files over the newly created DB devices. Start SQL server again, the databases will be recovering for a while but will eventually appear on-line.

    Hope this helps.

    Regards

    Raino Botha

Viewing 7 posts - 1 through 6 (of 6 total)

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