Embedding a backup/restore process inside an application

Hi,
I'm writing an application and I want to create a screen where the user can perform database backups and restores. I have a default install of SQL Server Express 2012 and I am executing a query to perform the backups.
The problem I have is that it would appear that there is no common ground on the file system between a standard user and the MSSQLSERVER user installed with MSSQL Express.  Every time I try to perform a backup I get the message:
Cannot open backup device 'xxxx' Operating system error 3 (The system cannot find the path specified.).
When I check the permissions it would seem that the MSSQLSERVER user only has permission in areas that the standard user doesn't.
What is the best way that I can get round this problem? (bear in mind that this software will be installed on remote machines therefore whatever I do needs to be reflected in an setup/installation process).
Regards
Chris.

Hello Chris,
Every SQL Server installation do have a "Backup" subfolder, where SQL Server do have permissions to write to; the user needs admin permissions to access the folder. You can query the folder location for a instance with:
exec master.dbo.xp_instance_regread
N'HKEY_LOCAL_MACHINE',
N'Software\Microsoft\MSSQLServer\MSSQLServer',
N'BackupDirectory'
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • Scheduled daily backups of DMM fail - Backup/Restore process stops running

    Hi, I have been testing the scheduled backups within the DMM AAI and have found it's performance to be unreliable.
    Specifically I am performing FTP backups to a remote network location.  Manual one-off backups complete successfully without any issues, and scheduled backups occur on the same day, however successive (reoccuring) daily backups don't happen and the Backup/Restore process seems to stop running. I have checked the backup logs but these don't provide any insight as to why the backup process stops running.
    Has anyone else encountered this?  I am running DMM v5.2.0.25.
    Mike

    I am having a similar problem.  Is there a method to restart the backup service without having to reboot the entire DMM Server?
    Note that there is no method via the AAI menu system, and the Web Admin console services section is not clear as to whether it will reboot the entire server (which is NOT an easy thing for me to get away with here).
    Restarting the 5.2.3 DMM Server (not JUST the service??)
    =========================
    I have now learned (per a Cisco engineer), that the 'Scheduled backup services' in the screencap above, is normally in the 'stopped' status "by design", and that it will not show as started in this UI unless the DMM server is actually in a backup.
    ==============================================
    =========================
    My backups now work correctly.  I think that the original problem was my NTP settings, which are now fixed.
    =========================================================

  • My iCloud Backup restore process seems to be stuck

    I am trying to restore an iCloud backup to a iPhone5s. I started the process about 20 hours ago. Most of my data was restored within a couple hours, but since then, it seems to be stuck restoring. It looks like my Podcasts and Pictures are the two areas left that say they are still downloading with no progress for the past 12-15 hours at least.
    Is there any way to get the restore moving again or do I need to wipe and start over?
    Thanks,
    Tim

    I have done that several times to no avail. That's what I was afraid of that, I need to start over. I was just trying to avoid it since I had trouble once already.
    This is actually a replacement for another bad phone I got yesterday at the Apple store. While I was in the store, I started the restore process and it also stuck, but they seemed to get it going again and after I was home, it continued to restore until the point mentioned above.
    I went ahead and wiped and now starting the wipe process over. I hope the backup I am restoring isn't the problem.
    Thanks for your help.
    -Tim

  • Backup - Restore process of a Site Collection in SharePoint Online

    Hi, I have a couple of questions. 
    1) What do I have to do to get a backup-restore of a site collection in SharePoint Online? 
    2) Can I myself perform a backup-restore or just backup a site collection without using any 3rd party tool?
    Any inputs on these will be helpful. Thanks in advance!

    Hi,
    what you can instead of backup and restore site is to save it as template, check this thread
    http://community.office365.com/en-us/f/154/t/203139.aspx
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • HT201269 my purchased ringtones did not transfer in the backup/restore process how can I get them on my new iphone?

    I swapped my 4s for an iphone 5 and have restored everything except the ringtones did not download from the old phone.  what do I do?

    Thi smight help you to download past purchases http://support.apple.com/kb/HT2519

  • Switch Device Wizard vs Backup/Restore Option

    If I am getting a repalcement Blackberry (8820)- same model as I currently have; would you reccomend that I use the Switch Device Wizard instead of the backup/restore process? Or would the restore process get me the same data?
    I have an Enterprise Outlook email address (from my employer) and some downloaded links for news, weather, finance, etc. I have setup my currently blackberry the way that I would like the new one to be. Is that possible with either the Switch Device or restore process?
    For the application loader - if I have Windows Vista Business on my laptop and Office 2003 or 2007, can I download the Microsoft applications to my Blackberry? Is that how the application loader functions?

    If you're on a BES, your data, including your Browser Shortcuts, Profile Preferences will be restored to your device from the BES when you run the Enterprise Activation.
    For information on what databases are NOT backed up, check here:
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB11101 
    For a list of databases, check here:
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB03974 
    No, you can not install applications like Office 2007 on your BlackBerry.  For a pretty long list of applications you CAN install on your BlackBerry (most with OTA or Over The Air installations available), check here:
    http://blackberryforums.pinstack.com/blog.php?b=322
    Jerry

  • Backup/restore question

    When you do a backup or restore, is any of the information on the microSD card copied/restored?  If not, how do you backup the songs, photos, etc., that are on the card?  Do you just copy the info from windows explorer?  I am running win7RC and have a Tour.
    While I'm thinking about it, I would like to get a larger microSD card.  What's the best way to transfer the info from the old card to the new one?
    Thanks in advance from a new guy
    Solved!
    Go to Solution.

    The backup/restore process doesn't touch the media card. You can just use Windows Explorer to copy the contents of the media card. I just got a new media card recently and I just copied the entire BlackBerry folder onto my PC, then inserted the new card, then copied the BlackBerry folder onto the media card.
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • How to BackUp Restore Large Library "original file could not be found"

    I've searched the archives for this with no clear answer, and am reposting to avoid confusing anyone.
    I am working on a manual and seamless BACKUP-RESTORE process to manage my large 100-gigabyte-plus iTunes library.
    +++++
    First, my iTunes folder is in default location:
    Boot drive> User> Music
    I don't keep any music in this folder.
    New music is imported into this folder, copied over to my Music Library, and then deleted from iTunes folder (to keep it and my boot drive clean, and my 100GB Music Library folder meticulously organized).
    My iTunes folder is set at default:
    iTunes> Preferences> Advanced> Change> iTunes Music folder location
    My actual 100-gigabyte-plus music folder is stored on a 2nd hard drive:
    HardDrive> Music Library
    This setup works perfect.
    +++++
    BACKUP
    To backup, I simply:
    1) copy my User> Music> iTunes folder (800mb) to a 3rd hard drive.
    2) copy my HardDrive> Music Library to 3rd hard drive
    RESTORE
    To restore, I simply:
    1) copy my backup iTunes into User> Music.
    2) copy my Music Library back to 2nd hard drive HardDrive.
    3) Relaunch iTunes and every works perfect.
    THE PROBLEM
    However, if I change the name of my 2nd hard drive (where my 100GB music folder is stored) — iTunes shows everything in place — all songs, art, playlists — but I get following error on every song:
    THE SONG NAMED ______ COULD NOT BE USED BECAUSE THE ORIGINAL FILE COULD NOT BE FOUND. WOULD YOU LIKE TO LOCATE IT?
    Obviously I don't want to have to do this individually for 30,000 songs and am looking for instructions how to point iTunes database back to my 2nd hard drive> Music Library and complete the restore process.
    I am hoping this can be done without changing my work flow — and it is a simple and logical move to tell iTunes where all the original files (missing songs) are stored.
    +++++
    Previous discussions have noted:
    Following this Apple Support Doc
    http://support.apple.com/kb/HT1589
    I was able to Quit iTunes, relaunch iTunes holding Option key, and chose my existing library (from my Music folder) — it works, everything shows up — but iTunes still doesn't know where my songs are (on my 2nd hard drive).
    If I point the Option+Open iTunes library prompt to my 100GB Music Library (on the 2nd hard drive), it tells me (logically) there is no library there).
    I've also launched and manually verifies iTunes> Preferences> Advanced> Change> iTunes Music folder location — it works, everything shows up — but iTunes still doesn't know where my songs are (on my 2nd hard drive).
    I anticipate more complications if I reset iTunes preferences to my 2nd hard drive or start dinking around trying to see what works and what does not work.
    +++++
    At this point I am trying to make THIS workflow, backup-restore process work — so I am hoping someone else has slugged through this and can take a few minutes to clue me in the right direction (or at least tell me there is no way to do what I am trying).

    If I simply rename the second hard drive to the name of the original 2nd hard drive — iTunes is successfully restored.
    I am still looking for a better way because I want to change the name of the second HD...

  • Process dimensions and Applications after Restore

    We are using BPC 7.0MS.  We need to process dimensions and Applications after the database restore in case of any Optimization failures. It takes around 3 hours for us to do this process. Can we skip the BPC process by taking backup of Database and SSAS and restoring them in case of any failures?
    Thanks
    Raj

    Hi Raj,
    you can try but remeber that after the restore you must execute a "modifiy application" for all your applications so maybe you'll not gain time.
    Kind regards
    Roberto
    Edited by: Roberto Vidotti on Dec 12, 2011 3:33 PM

  • I can't backup my Ipad , but I can sincronizing , I don't have any previous backup but I have my applications in Itunes if I restore to manufactured settings I lose my Itunes applications?

    I can sincronize my Ipad applications with Itunes but I don't can backup my IPAD , I have the error to disconnect the IPAD in the middle of backup , and
    now it's imposible make a backup , the process hanghed many houres at the initial steps.
    Now only have the applications in the IPAD I transfered all the applications to PC , I want restore the IPAD to manufactured settings and after transfer the
    applications , but when I start the restore by ITurnes appears a message that the I will lose the applications and I will need to bay other time my applications.
    This is true?
    Regards.

    Did you have iCloud photo stream turned on for photos?  If you did, then you can view your photos at iCloud.com.  If you can verify that they are all there, you can do the factory reset.  Once you turn on iCloud again after the reset, the photos won't be on the phone but they will still be in the photo stream which you can view on the device.  You should be able to copy the photos down to the computer from iCloud.  On an Apple Mac computer, iPhoto can view photo stream and you can download photos there too.
    Personally, with syncing issues with iTunes, I prefer to use an app called PhotoSync (which is an app in the App Store, Mac App Store, and available from the developer's website for Windows PC's.  This App (once turned on for both devices) lets you send photos back and forth within wifi.

  • I sold my iPhone4, and I need to restore it before shipping it. The buyer has asked that I don't install iOS6. Is this possible? Does the restore process force iOS6 onto the phone? Before I backup/restore it, it has iOS5.1.1 installed.

    I sold my iPhone4, and I need to restore it before shipping it. The buyer has asked that I don't install iOS6. Is this possible? Does the restore process force iOS6 onto the phone? Before I backup/restore it, it has iOS5.1.1 installed.
    Thanks in advance.
    jj

    Just go to Settings>General>Reset>Reset all Content and Settings

  • Backup/Restore won't reload third part applications, why?

    This completely doesn't make sense to me. What is the use of having a backup/restore function if the entire device is not actually backed up and restored? Apparently this is just the databases? Well, what good are some of the databases, if the restore feature isn't restoring the applications that use those databases? This seems liek such an utterly useless feature without the applications.
    There is even an option when choosing Reload Device Software, saying backup and restore third party applications, yet this only seems applicable when completely reloading the device software, and not when attempting to transfer from one failed blackberry to a new one.
    The applications are even in a folder on my computer, yet I cannot install them to the device. How can I install these?

    Hello Pixonti,
    Have you had a chance to try the Switch Device Wizard?  
    Here is an article that will show you how to use it using BlackBerry Desktop Manager 6.0 
    Here is an article that will show you how to use it using BlackBerry Desktop Manager 5.x 
    -tg
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • I am trying to restore my mac osx 10.7.4 from an ext lacie harddrive and getting message "u can't open the application lacie backup support because power pc application are no longer supported"

    i am trying to restore my mac osx 10.7.4 from an ext lacie harddrive and getting message "u can't open the application lacie backup support because power pc application are no longer supported"

    Use any number of free alternatives to your nearly decade old version of MS Office.
    Consider
    LibreOffice (donation-supported)
    NeoOffice (free)
    OpenOffice (free)
    In addition to the above I also recommend Apple's Pages ($19.99). I use OpenOffice and Pages and have been completely Microsoft - free for years. Life is better without Microsoft.

  • Back up and Restore Process of Hyperion Planning(V9.3.1)

    Hi All,
    Greetings!!!!
    Could anybody help me in getting the Backup and restore process of Hyperion Planning 9.3.1 Application w.r.t to Relation Database stand point (We are using SQL Server 2005).
    Thanks in Advance.
    Regards,
    tvmk
    Edited by: tvmk on Jan 11, 2010 9:30 PM

    Have you a read through the " [Hyperion Backup and Recovery Guide|http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hfm_backup.pdf] "
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • From iPhone 4 to 5 backup restore problem.

    Today i've taken my new iPhone 5, but thing from traslate my backup from a iphone 4 to the new wasnt smoth like usual i explaine:
    1) I've done a backup of my iphone4 whit cable on iTunes Mac ( 1.8.2 ) last versione of itunes ofcorse.
    2) I've turned on the iphone 5 , started the first step and when it asked me if i want restore from iCloud , itunes, or new i've docked the iphone 5 to the Mac with the lighting cable with itunes open and click on restore from bacup.
    3) I've selected the just created backup from my iphone 4 and clicked next.
    At this poing reset and restore process started but and the end of that iphone 5 was complitly useles, stay on black screen, if i click on ON button apple appear and after few second turn off again.
    I'd to restore the phone with the DFU mode.
    Than i've tried again, and than iphone dead again.
    DFU again and restore.
    4) So i've tried another way. I do every night the iCloud backup of my iPhone 4 so i've tried to restore that backup and the process seems to stard correcty.
    5) After 15 minutes of gray screen and blue progressing bar, iphone turned on and show me the icon and the the application download process started.
    6) After 3-4 minutes i've receved a message that tell me that the restore proces is incomplete, but application continued to download and no missing data in contacts and mail.
    7) The download started very very very slow to download the watsapp app put something like 10 minutes, and TomTom was the next, so i've plugged the cable again and started the sycronization from the Mac. Everything goes fine, the apps was installed , it took a little long , but i've alot apps. But the sync process cant end. IT stuck on step 6.
    8) Tryed again and even if there is noting more to sync  ( i took few second ) it stuck always in the end of process.
    i'de a group o message in the iMessagge app tha make my phone crash istantly but solved delting it..
    Any advise of how to fix? I've chaged alot of iphoens and never had problem like this to restore my data.

    Be sure to backup your 4 to your computer. Then, sync the 5 using the back-up from the 4. Then backup the 5. You will get MOST ALL of your information. Some things like recently added apps didn't go to my 5, neither did some music, but when I synched with the computer via iTunes I THINK they all reappeared. HOWEVER, my ical on the computer and my phone have more information than my cloud calendar. I also have more contacts on my iphone than in the cloud. Be sure to back up your 5 before doing a cloud sync.....I spent 2 hours on technical support last night, and he is going to call me back for another hour to two, to migrate all my info. BE CAREFUL, and if you have any "special circumstances," call Apple support. If you aren't sure what to do it is worth the time, effort, and expense, if your free support has ended! Having more than one apple ID is a pain. (I had one from prior use of Mobile Me, and a different one for iTunes, so my info is in two places, and won't all sync to my phone!)

Maybe you are looking for

  • 5G iPod skipping songs after iPod Update 1.1

    After I updated my 5G 60 Gig video iPod to Update 1.1, my iPod started to skip certain songs. I have tried erasing the songs, importing them again from the CD, and reloading them back to the iPod and the iPod still won't play those SPECIFIC songs! Ne

  • Mountin Lion or Mavericks on Mid 2010

    Hello, I have a MacBook Pro, 13-inch Mid 2010 Processor 2.66  GHz Intel Core 2 Duo Memory 4 GB 1067 MHz DDR3 Graphics NVIDIA GeForce 320M 256 MB I recently installed the latest update OS X 10.9.3, I'm curious is there perhaps by any chance that havin

  • Video preview through second monitor

    I'm running PPro CS5 on a mid 2010 Mac Pro with an ATI Radeon HD 5770 graphics card.  The card can feed up to 3 monitors - of which I have two connected right now.  In Encore I can choose to preview from either monitor, but in PPro I seem to get only

  • Flatten a PDF file from Excel

    Flatten a PDF file from Excel Is there any way to run a javascript to flatten a PDF document from Excel? I'm populating a PDF form from Excel by creating a FDF file, once I finish I need to flatten it. Is there any way to accomplish this without havi

  • TOC highlighting not synched

    Can anyone offer a solution for my problem? When I hit <F1> to open the help from my application, the TOC highlights to the correct Context ID Tag. If I close the help and then <F1> from a different application form, the Help opens correctly, with th