SQL maintenance plan to USB drive

Posted on 2011-04-27
Medium Priority
Last Modified: 2012-05-11

I want to configure a maintenance plan in SQL 2008 studio to backup one database to a USB drive connected to the server as drive G.

I've found that the plan is failing.  The error message is:-

Executing the query "BACKUP DATABASE [LiveData] TO  DISK = N'G:\\Wednes..." failed with the following error: "A nonrecoverable I/O error occurred on file "G:\\WednesdayUSBBackup\\LiveData\\LiveData_backup_2011_04_27_114501_5533935.bak:" 112(failed to retrieve text for this error. Reason: 15105).
BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

One thing which is confusing me is why the error message includes double backslashes in the file path.  Is this the problem.

I have a similar plan to an internal drive which is working fine.


Question by:Petermcg001
  • 2
LVL 16

Accepted Solution

EvilPostIt earned 1332 total points
ID: 35474421
Operating system error 112 is "There is not enough space on the disk"

run this from cmd


Open in new window

LVL 16

Assisted Solution

EvilPostIt earned 1332 total points
ID: 35474424
The double backslash would be there because \ is an escape character so you can ignore this.
LVL 14

Assisted Solution

Daniel_PL earned 668 total points
ID: 35474541
You simply could try to issue backup command manually to check:
BACKUP DATABASE [LiveData] TO  DISK = N'G:\WednesdayUSBBackup\LiveData\LiveData_backup_2011_04_27_114501_5533935.bak'

Open in new window


Author Closing Comment

ID: 35513799
Sorry, really red face here!

I discovered that the USB drives had been supplied as FAT32 and therefore couldn't support the file size needed.  

Reformatted them NTFS and it works fine.

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Integration Management Part 2
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question