recover data from master backup file

  • Hi there!

    I'm fresh meat here, and I also would consider myself as a DB guru. Eventually I have a huge problem:

    Did a backup on a mssql 2008 (10.00.1600) and now I only have the backup files (master, model, msdb). I have nothing else. I have to get my tables and records out from the master file.

    What I did: the master restore using the console. It told me it was successful a but now it wont start. Actually I know exactly why: the master backup captures all the groups, accounts, credentials and machine IDs that I don't have a chance to simulate the old environment here.

    Question: is there any way of getting my tables out from the master file. I mean, _any_ way. It's important, nearly a half year's work's in there.

    Any advices (apart from, "next time you should") are highly apprichiated.

    Regards,

    David

  • do you mean tables and data from user defined databases?

    if so, then there is no chance without having the backups specifically for those databases, the master database does not hold all the data for all databases created.

  • Thank you for you're quick answer!!

    Nope! The thing is, that it's not a common thing, but the master db was holding the application tables too (HP Service Manager). I remember checking this out.

    So the problem is that I don't need any of the "database" data from master but the application tables and records.

    Is there a way of restoring the master file's tables to another db perhaps?

    Or I'm doomed because I'll need the exact environment (db name, dirstructure, user, groups) to restore the backup file?

  • Try to use Net start to start the sqlserver with parameter -f and -m. Not sure this will work, but worth to try.

  • do you have another instance of SQL at the same version? You could restore the master backup as a user database (change its name and physical file names on the way in)

    ---------------------------------------------------------------------

  • Thank you everyone, I finally solved it. Thanks to your ideas and a friend.

    I wasn't wrong: I needed the same version of SQL and then I had to restore it as a user db. I always tried to restore it as the master db

    Here goes:

    RESTORE DATABASE mastercopy FROM DISK = N'C:\DBback\master'

    WITH MOVE N'master' TO N'C:\DBback\mastercopy.mdf',

    MOVE N'mastlog' TO N'C:\DBback\mastercopylog.ldf';

    GO

    That did the job. Now I have a mastercopy DB and I can finally move my tables, records to the new development db.

    Thank you for your help!

    Regards,

    David

  • Don't forget to rename the logical names of the db files for your mastercopy database. It should not cause problems if you do not, but if do anything with SQL metadata it could cause problems or unexpected results.

    Joie Andrew
    "Since 1982"

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

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