Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

recover data from master backup file Expand / Collapse
Author
Message
Posted Wednesday, November 28, 2012 4:47 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, November 28, 2012 9:08 AM
Points: 3, Visits: 5
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
Post #1389640
Posted Wednesday, November 28, 2012 4:56 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, May 30, 2014 6:27 PM
Points: 2,808, Visits: 7,175
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.
Post #1389646
Posted Wednesday, November 28, 2012 5:05 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, November 28, 2012 9:08 AM
Points: 3, Visits: 5
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?
Post #1389648
Posted Wednesday, November 28, 2012 5:15 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, March 21, 2014 9:46 AM
Points: 387, Visits: 1,078
Try to use Net start to start the sqlserver with parameter -f and -m. Not sure this will work, but worth to try.
Post #1389652
Posted Wednesday, November 28, 2012 6:47 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 1:58 PM
Points: 5,888, Visits: 13,063
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)

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

Post #1389732
Posted Wednesday, November 28, 2012 7:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, November 28, 2012 9:08 AM
Points: 3, Visits: 5
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
Post #1389771
Posted Wednesday, November 28, 2012 8:10 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Yesterday @ 2:17 PM
Points: 710, Visits: 1,455
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"
Post #1389817
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse