Can anyone help me, I’m trying to backup a database located on localhostSQLEXPRESS but i keep getting the following error:
Backup failed for Server 'localhostSqlExpress'. (Microsoft.SqlServer.SmoExtended)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.2531.0+((Katmai_PCU_Main).090329-1045+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: Cannot open backup device 'C:backup.bak'. Operating system error 5(failed to retrieve text for this error. Reason: 15105). (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.2531.0+((Katmai_PCU_Main).090329-1045+)&LinkId=20476
Can anyone explain what I’m doing wrong here ??
thanks
Wesley Wiser
9,2814 gold badges49 silver badges67 bronze badges
asked Mar 7, 2010 at 23:10
4
It looks like the SQL Server doesn’t have permission to access file C:backup.bak. I would check the permissions of the account that is assigned to the SQL Server service account.
As part of the solution, you may want to save your backup files to somewhere other that the root of the C: drive. That might be one reason why you are having permission problems.
Mitch Wheat
293k43 gold badges463 silver badges538 bronze badges
answered Mar 7, 2010 at 23:19
Paul KeisterPaul Keister
12.7k5 gold badges45 silver badges75 bronze badges
I’ve faced this error when there was not enough free space to create a backup.
Jim Simson
2,7463 gold badges21 silver badges30 bronze badges
answered Oct 31, 2011 at 21:54
The SmallestThe Smallest
5,65325 silver badges38 bronze badges
5
Assuming that the *.bak file is on the same machine as the SQL Express instance it might be a permissions issue.
If you download procmon http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx you can filter on that file path, look for ACCESS_DENIED errors and if any are there you can see the account name that’s failing get to access.
answered Mar 7, 2010 at 23:18
Martin SmithMartin Smith
430k87 gold badges727 silver badges825 bronze badges
2
I got this error too.
The problem turned out to be simply that I had to manually create the full directory structure for the file locations of the MDF & LDF files.
Shame on SQL-Server for not properly reporting the missing directory!
answered Mar 5, 2012 at 11:39
Coder_DanCoder_Dan
1,7753 gold badges21 silver badges31 bronze badges
I’ve got the same error. I have been trying to fixing this by setting higher permission to account running SQL Client service, however it didnt help. The problem was that I run MS Sql Management studio just within my account. So, next time… assure that you are running it as Run as Administrator, if using Win7 with UAC enabled.
answered Jan 11, 2012 at 8:52
Jaroslav UrbanJaroslav Urban
1,2693 gold badges20 silver badges32 bronze badges
0
Yes, it is security issue. Check folder permissions and service account under which SQL server 2008 starts.
answered Jul 18, 2011 at 7:26
I had this error. Nothing worked for me until I opened the SQLServer log file in the «MSSQL10_50» Log folder. That clearly stated which file could not be overwritten. It turned out that the .mdf file was being written into the «MSSQL10» data folder. I made sure that folder had the same SQLServer user permissions as the «MSSQL10_50» equivalent folder. Then it all worked.
The issue here is that the error detail is logged but not reported, so check the logs.
answered Apr 10, 2012 at 10:27
hillstukhillstuk
1,52613 silver badges13 bronze badges
The log shipping backup job for one of our databases is failing with the error message:
Read on «D:DataFilename.mdf» failed: 1(failed to retrieve text for this error. Reason: 15105)
Attempting to run the job out of schedule (to see if this gleans any additional data) results in a failure with the same message.
What is the cause of this message and how would I resolve it?
Select @@VERSION
:
Microsoft SQL Server 2008 R2 (SP3) — 10.50.6220.0 (X64) Mar 19 2015
12:32:14 Copyright (c) Microsoft Corporation Standard Edition (64-bit)
on Windows NT 6.1 (Build 7601: Service Pack 1)
DB Compatibility Level: SQL Server 2008 (100)
Recovery model: Bulk-logged
Results of DBCC CHECKDB:
DBCC CHECKDB ('DatabaseName') WITH PHYSICAL_ONLY
reports:
DBCC results for 'DatabaseName'.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112497) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112498) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112499) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112500) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
CHECKDB found 0 allocation errors and 4 consistency errors not associated with any single object.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112497) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112498) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112499) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112500) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
CHECKDB found 0 allocation errors and 4 consistency errors in table 'schemaname.tablename' (object ID 557349150).
CHECKDB found 0 allocation errors and 8 consistency errors in database 'DatabaseName'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (DatabaseName).
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Summary: SQL Administrators always try to keep the SQL Server up and running by protecting the machine from unnecessary problems and errors. However, the error can still strike the Server, like in this case where the user is unable to open a file due to SQL server error 15105. This blog helps you comprehend the type of error, what are its causes, the resolution steps, and how Stellar Repair for MS SQL software helps to resolve the error.
Contents
- What is SQL Server Error 15105?
- Most Probable Reasons to Cause Error 15105
- How to Resolve SQL Server Error 15105
- Conclusion
When trying to back up a SQL database, the backup may fail and the following error message is displayed on the screen:
What is SQL Server Error 15105?
MS SQL error 15105 hits the SQL database when a user tries to create database file backup on a network shared disk. Also, when hosting database file on a network share is not supported then the error 15105 occurs.
Most Probable Reasons to Cause Error 15105
- Space Issue: Lack of space where the database backup file is to be created
- Conflict with permissions: Inadequate permissions to access the location of backup data-file that is assigned to SQL Server service account
- Issue with MDF File: Trying to attach an MDF file which was not detached properly
- Conflict in folder location: Location of the folder in the error message is not of the same instance as the user wants to store the backup thus the service does not have access to the folder.
- Location conflict: Backup file copied from the computer other than the destination computer
- Ineffective Security: Backup file blocked due to security reasons
- Corrupt Windows Operating System (OS)
- Virus attack
- Issue with software application where it is not installed properly
- Innumerable startup entries and registry issues
Refer the factors mentioned above and analyze the exact reason for this error and try to fix it accordingly. Below listed methods will help you resolve the error 15105.
How to Resolve SQL Server Error 15105
The workaround process involves creating backup files of SQL database with following precautions and steps:
- Using Backup
Steps before backup
- The drive volume should have enough space to upload backup files efficiently
- Perform defragmentation followed by space-check to ensure that it is more than 15%
Steps for backup
- Locate the original folder on Shared Network and right click on the Folder
- Click on Sharing and Security options
- Go to Permissions for Sharing tab
- Assign Full Access to the target account. If security is not the concern, then assign Full Access to everyone but take care to mention a specified period and once the restoring process is complete, modify the assigned permissions.
- Once the permissions are attached, click on Apply followed by Ok
- Go to Security tab and add that specific account for which full permits are granted. Assign appropriate privileges to the account.
- Click on Apply followed by Ok
- Take a backup of the database. There are chances of getting successful backup results.
Hopefully, the SQL server error 15105 is resolved, and SQL server backup device is accessible. However, it may happen that manual method does not produce useful results, due to corruption in SQL backup file or the source from where it is backed up, and this leads to inaccessibility of backup data.
- Alternate and Ultimate Solution
Manual methods have limitations. Also, these processes are lengthy and time-consuming hence, use the SQL repair software to resolve the error. One of the most recommended software by SQL Administrators is Stellar Repair for MS SQL software which fixes the corruption in MDF files and resolves the SQL server error 15105.
Note: Stellar Repair for MS SQL software repairs the corrupt MDF & NDF files, hence there is no need to use the corrupt backup file to recover the database.
Repair SQL database in Simple Steps:
- Install and Open software
- Select the corrupt database and click on Repair button
- Preview of all tables and other components of the database is displayed for verification. Also, a Log Report is available to analyse the repaired database-content
- Save in MDF file format. Alternatively, you can save in other formats– CSV, HTML or XLS.
The SQL Recovery software recommended by Microsoft MVPs
Conclusion
SQL Administrators never want to get into the situation where they are unable to open the file due to SQL server backup error 15105, but there is no sure-shot way to avoid the error if it strikes. The best alternative is to download and install the Stellar Repair for MS SQL software and resolve the problem when it occurs. The 4-step solution fixes corruption-related errors and ensures that the database is accessible 24×7.
About The Author
Priyanka
Priyanka is a technology expert working for key technology domains that revolve around Data Recovery and related software’s. She got expertise on related subjects like SQL Database, Access Database, QuickBooks, and Microsoft Excel. Loves to write on different technology and data recovery subjects on regular basis. Technology freak who always found exploring neo-tech subjects, when not writing, research is something that keeps her going in life.
Best Selling Products
Stellar Repair for MS SQL
Stellar Repair for MS SQL is an enterpri
Read More
Stellar Toolkit for MS SQL
3-in-1 software package, recommended by
Read More
Stellar Converter for Database
Stellar Converter for Database is an eff
Read More
Stellar Repair for Access
Powerful tool, widely trusted by users &
Read More
How to Resolve SQL Server Database Backup Error 15105
In MS SQL Server, Error 15105 occurs when the user is trying to create a database backup (.bak) file with the network shared disk.
Mostly, the error message 15105 displayed like this:
Operating System Error 5: “5(failed to retrieve the text. Reason: 15105)”
You may also identify the error 15105 like this: Cannot open backup device “\xxxxxxxxx.bak”.
Operating system error 5 (failed to retrieve text. Reason: 15105)
It may also appear something like this, “Operating System Error 5 (Access is Denied)” and this message is forwarded to local disk on the network.
Reasons of MS SQL Server Backup Error 15105?
In SQL Server the error code 15105 is caused due to following reasons.
- Virus attack is a major reason of such types of error.
- The Windows Operating System corruption also may raise this problem.
- The destination where user trying to keep his database backup files is suffering from lack of space.
- The permission issue of accessing the location of the database backup files that is assigned only to the SQL Server Database service account.
- The registry errors and excessive startup entries may be an aspect of SQL error message 15105.
- If user copied the backup file to the different system, then the destination computer may block the file due to security logic.
- The incomplete software installation may also create this problem.
Method to Fix the SQL Server Database Backup Error 15105
It is recommended that you should free the space for database backup files and then run the defragmentation action.
Steps to Fix SQL Database Backup Error 15105
- Go to the location where actual folder is shared.
- Now right click on the folder and select “Sharing and Security” option from drop down menu.
- From there select the “Sharing” tab and click on “Permissions Settings”.
- The account which you want to use for the backup purpose, give full access permission privileges to that account. If you are running under the SQL server service account, then give full access permission to the domain account.
- After adding the necessary accounts and privileges, click on “Apply” and “OK”.
- After this go to the “Security” tab and add all the account whom you have given access permission and give them full access permission.
- Now click “Apply” and “OK”.
Conclusion
The above given manual process is enough to fix SQL Server backup error 15105. However, if it doesn’t works in your case then you can use SQL Server .bak file repair tool, which allows you to fix SQL .bak file.