Cannot restore backup to LocalDb

I am having problem restoring a SQL Server 2013 database backup to a LocalDb instance.  Here's what I do:
Create a full backup of the database, overwriting all existing backup sets (I simply use the backup GUI for this), on the production server
Copy the backup file from the production server to my local development system
Create a new LocalDb instance, share it, and start it
Connect to the LocalDb instance using SQL Server Management Studio,
Attempt to restore the database using the restore GUI, explicitly defining the location of the data and log files and selecting WITH REPLACE and RESTORE RECOVERY.
The database restore operation starts and after a little while fails with the error:
The logical daabase file '<logical log file>' cannot be found. Specify the full path for the file.
I've looked at the file list in the backup and everything appears to be in order.
I've viewed other threads that describe this problem and while some have work-arounds none of them have real answers.
After a bit of investigation I have discovered that the data and log files for the original database were stored in different folders.  On a hunch I tested this out.  I created two databases, one whose data and log files were in the same folder
and another where they were not.  I then attempted to restored these two databases in the LocalDb instance.  The database whose files were together restored just fine, but the database whose files were not together failed with same error.
We use backups of our production databases in our build system in conjunction with SSDT to produce delta scripts than can then be run against the production database to update / upgrade it.

Hello Tyrius,
The issue is because the LocalDB does not have default data or default log registry key and the backup/restore fails due to that.
Workaround:
To restore such backups on a SQL express edition of
SQL Server 2012, change the path of the mdf and ldf to the same location and then backup the database and then restore it on the Localdb instance.
Regards, Don Rohan

Similar Messages

  • Even though iOS cannot restore backups of newer devices, can it restore data from an older device using 7.1.2 to a newer device using iOS8

    iPhone 4s 16GB running iOS 7.1.2. Even though iOS cannot restore backups of newer devices, can it restore data from an older device using 7.1.2 to a newer device using iOS8

    Hi ,
    Welcome to the Apple Support Communities!
    I understand that you cannot use your Wi-Fi after the latest update to your iPhone 4s. I know you have already done some great troubleshooting by restoring with iTunes but the Wi-Fi becomes unavailable very quickly after you set it up. Go ahead and set up the iPhone so you can get into the Setting and then follow the steps provided in the attached article.
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
         Resolution
    Follow these steps to resolve the issue:
    Restart your iOS device.
    Make sure that airplane mode is off by tapping Settings > Airplane Mode.
    Reset the network settings by tapping Settings > General > Reset > Reset Network Settings.
    This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    Make sure that your device is using the latest software. To do so, connect your device to your computer and check for updates in iTunes.
    If you complete all of these steps and still are not able to access the Wi-Fi, it may be necessary to follow the link at the bottom of the page and contact Apple Support.
    Have a great day,
    -Joe

  • I am setting up my Iphone 6 but keep getting an error message "cannot restore backup from Icloud...I backed up my old Iphone 5 just yesterday...Any suggestions?

    During setup of Iphone 6 I keep getting error message "cannot restore backup" from Icloud.  I backed up my old Iphone 5 yesterday.  Is it because of different operating systems? Please help. Thanks!

    Does your iPhone 5 IOS is later than iPhone 6 IOS?
    If true, you need to update your iPhone 6 before you can restore from your backup.
    If not, is iPhone 6 connected to power supply?

  • Why does it say, "Cannot Restore Backup" when I try to restore my iPhone using iCloud on iOS 7.1.1?

    When choosing iCloud backup I choose the most recent backup but then after a few seconds it says "Cannot Restore Backup", what do I do?

    its not possible to restore to a backup from a newer IOS

  • I just exchanged a faulty iPhone 4 for a new one, when I got home to restore it, iCloud says "cannot restore backup". Can somebody please help provide much needed advice? Thanks in advance!

    I just exchanged a faulty iPhone 4 for a new one, when I got home to restore it, iCloud says "cannot restore backup". Can somebody please help provide much needed advice? Thanks in advance!

    Yep, that's the only message that popped out. Nothing else. Yes, it's running on the latest ios and I still can't restore it. I called apple and they told me it's probably something wrong with their servers. Anyway thanks for the advice.

  • "restore from icloud backup" pressed "cannot restore backup" that pops up. I can not restore documents.

    i want restore my ipad2 from icloud.
    so.. I "reset-reset all settings" is pressed.
    but! in the process of restoring "cannot restore backup" is displayed.
    help me...

    First of all, you should always save you photos on computer like any other digital camera.
    Backup on iCloud or iTunes only backup your Camera Roll. The other photos should be already on the computer.
    Note: Photos are not saved in iTunes, it's only a conduit between your iPhone and your photo managing software on computer.
    What computer do you have?

  • ICloud says cannot restore backup

    Hi guys,
    I need help. I was trying to restore my iPhone from an Icloud backup and all it says is "cannot restore backup". That's it, nothing else. I've tried the same backup on iOS 7.1.1 and 7.1.2 and it gives me the same error. How on Earth do I fix this.
    im using a 5s over wifi and cannot see a reason for this to be happening. Please help

    That error message doesn't give you much to go on.  Hopefully it doesn't mean that the backup is corrupt and cannot be restored.  You might want to just try again later in case it's a server issue at Apple's end.  Otherwise, you can contact support here: http://www.apple.com/support/icloud/contact/.

  • TS4585 hi guys, i'm trying to restore from icloud backup and each time I do it from the three backups I available to me it keeps saying Cannot Restore Backup.....any ideas please?

    Hi guys Im trying to restore from Icloud backup and each time I do it from the three backups I have available, it keeps saying 'Cannot Restore Backup'.......any ideas please?

    Any message in that article the one that you are getting?
    http://support.apple.com/kb/TS4036

  • IPhone "Cannot Restore Backup"

    Hi,
    Long story short, I updated my iPhone, it cashed.
    Try to restore it using backups from iCloud, I get the message "Cannot Restore Backup" from all 3 backups.
    Try to restore using PC, either crashes or restores phone but with nothing (except the default apps) on it, not a thing.
    Is there a way to download my iCloud backups to try with those ones? Because the backups on my PC are quite oldish.
    Thanks.

    The weird thing is, i've got my pictures and videos back from this date and my settings are in order just lerally no apps I downloaded since i've had the phone.
    Plus the backup is like a month old so other things i've lost, e.g. contacts and stuff.
    Not a huge deal, just wondering what I can do?
    Is there a problem with the phone?
    Is it worth taking to a Apple store?

  • IPhone "cannot restore backup" at about 75%; why? And why am I paying for this?

    I'm trying to restore my iPhone 4S.
    After logging into my account it starts downloading my backup. At what is roughly the 75% mark, a message pops up saying "cannot restore backup". It takes about an hour or so to get to this point.
    I have tried to do this three times with my latest backup. I just tried a fourth time using a backup from earlier this month and the same thing happened.
    Is the backup too big? It's 42.8GB.
    I should note that I'm using a very stable broadband connection.
    It really makes me ask the question; why am I paying for such trouble? (you don't need to answer this question )
    Updated:
    Looking at my broadband usage shows that only about 3GB of the backup is downloaded with each attempt, so I'm guessing size does not matter (in this case).
    Message was edited by: cjk77

    HEY! this may sound crazy but i was having the same problem... I just kept touching my screen and not letting the screen lock or turn black and it worked.
    Might sound crazy but worth a try!

  • Cannot restore backup from iCloud after rolling back from iOS 8

    So, after trying iOS 8 on my iPhone 4s I decided there was too much lag to apps opening, etc.
    I downloaded the iOS 7.1.2 firmware and got it back, after backing up to iCloud.
    Now all I get - after trying probably 250 times over the past day - is 'Cannot restore backup' from any of the backups from the past three days.
    Is it being blocked because iCloud recognises it as not being the latest iOS?
    Any thoughts?
    Thanks in advance for any help

    I have the same problem with an iPhone 4 with iOS 5.1.1, I'm trying to restore my iPhone with a backup made with iCloud (when I made the backup 2 weeks ago I had the same iOS version, 5.1.1).
    The error message is: "Cannot restore backup" which is NOT listed here: http://support.apple.com/kb/TS4036
    I need some help with this, thanks.

  • Help "Cannot Restore Backup" - Lost all my sons baby photos from birth

    Hi All,
    When trying to restore my iPhone I receive this message "Cannot Restore Backup" when selecting any of the three previous restore points. I had a live chat conversation with apple; they confirmed all three of my backup's are ok their end and recommended that I try the two finger reboot and reset my wifi. None of this worked so they suggested that I tried again in the Apple store using their wifi.... Again didn't work. Made a appointment with the genius bar and they tried a DFU mode reboot with no joy. Next they tried a restore using a new hand set but this also didn't work. Apple has now set a call back for 4:15 tomorrow 3/11/14.
    I am now pretty concerned as iCloud has all my photos of my baby sons photo since he was born, which are priceless photos. I don't care about my app etc but I really hope that Apple have a way to supply me with my photos should all else fail. After all I'm paying monthly for a 200GB storage plan which at the moment doesn't appear to be fit for purpose.
    Has anyone had any joy in resolving this issue? The member of the genius bar tried to make out that my device or wifi was the problem when backing up. I pointed out that at no point has my phone informed me that the backup failed and that the apple advisor via the live chat said my backups were fine. I said from my point of view I'm paying for a service to ensure all of my photos and videos were safely stored without fear of a home hard drive failing.
    Thanks in advance for any help or advice,
    Carl

    Hi bena73-
    Dohh!
    Well, there is this: .Mac: Backup - Restoring Mac OS X 10.4 contacts and calendars in Mac OS X 10.5 Leopard
    Thanks for the star-
    -DaddyPaycheck

  • Forgot Id and password of previous Z10 and cannot restore backup on new Z10

    I forgot BB ID and password of previous Z10 which I gave to my daughter. Cannot restore back-up done from the previous Z10 to the current one as it requires the previous ID  and password.

    samoth wrote:
    I found my previous Z10's ID but cannot re it use on current Z10. How should I go about it?
    If you are now using a NEW BlackBerryID on the device, you will need to security wipe the device, and then setup the Z10 with the other BlackBerryID.
    Article ID: KB33591 How to perform a security wipe on a BlackBerry 10 smartphone
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Cannot restore Backup data on Z2 Android 5.0

    Hi everyone,
    So I just been upgrading my Xperia Z2. The phone was on Android 4.4.2 when I used the Backup & Restore application to backup my System apps data, and some of my Downloaded apps with data. I had to upgrade to 4.4.4. I think it was a mistake that I didn't make a backup on 4.4.4 as well. Now I've upgraded to 5.0, and all of my apps & settings were kept, but I wanted to start clean, so I did a factory reset.
    Now when I'm trying to use the Backup & Restore app again to Restore the backup file I made on 4.4.2, a window pops up saying "Cannot restore, Selected backup records cannot be used due to incompatible software versions. Please select a more recent backup file."
    So the backup files are present, everything else works on the Z2...my question would be what should I do now to be able to restore my backups?
    Thank you all,
    David

    The back of my z2 cracked during the winter so 3 weeks ago i sent it to sony so that they could fix my back glass, by the that l had not received lollipop at here in the US it was not yet available. So they asked me to backup my information as they would reset the phone when it got to them. So i tried to backup using PC companion and i failed so i decided to backup on my SD card using the backup and restore application in the applications menu. So this week they sent the phone back to me and it had been a update to lollipop, when i tried to restore my backuped data from my SD card it would not let me with an error message saying there is incompatibility or OS. I call sony to help me about it they could not help me

  • HT1766 How do I resolve the error "iTunes cannot restore backup because there is not enough free space on iPod"?

    I have an iPod touch 4th generation 8gb and im having a time zone issue on it, so I just backed up and I want to restore from backup. When I try to restore from backup it tells me that there is not enough space on  my ipod to restore backup. I have 687 mb free, how much space does it need? I dont want to restore then restore from backup in case something goes wrong like this and I have to start all over. Id rather have the time zone issue than an empty ipod. How do i resolve this? please help!

    Try moving/deleting from your iTunes libary apps and music which were on the iPod when the backup was made. When selecting apps,select the ones with app data that you can lose.

Maybe you are looking for

  • Flash audio does not work on HDMI

    Hi, I'm trying to make HDMI audio work. So far I've been able to make almost everything work, but Flash is still giving me headaches. I cannot make it play on HDMI, when I open a video on youtube sound comes out from my laptop's speakers. I googled a

  • Question about Contact Sheets and Version name.

    When making a contact sheet, is it possible to just have the image number under each photo and NOT the words "Version Name" in front of each number? Thanks for any help.

  • MobileMe sign on

    I have read through tons of posts and have not found one that has helped me with my issue. I have a full subscription to MobileMe. I was on a support chat after downloading the Gallery app and wasn't able to sign on. I was told that my subscription w

  • What is fastest possible wireless router and pci card for G4?

    There are many companies offering wireless transfer of data that exceeds the Airport Extreme card and Base Station. Are any pci cards other than AE compatible with a G4?

  • ACTIVATION CODE IS INVALID

    Tried two different codes, both said invalid code.