SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


recover data from master backup file


recover data from master backup file

Author
Message
zsirgaz
zsirgaz
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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
steveb.
steveb.
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10768 Visits: 7195
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.
zsirgaz
zsirgaz
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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?
SQL Show
SQL Show
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1541 Visits: 1078
Try to use Net start to start the sqlserver with parameter -f and -m. Not sure this will work, but worth to try.
george sibbald
george sibbald
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25092 Visits: 13698
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)

---------------------------------------------------------------------
zsirgaz
zsirgaz
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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
Joie Andrew
Joie Andrew
SSCertifiable
SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)

Group: General Forum Members
Points: 6567 Visits: 2032
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"
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search