SQL Server 2008 Backup Error - Operating System Error 5 (Failed to get text for this error Cause: 15105)

Can someone help me, I'm trying to backup the database located on localhost \ SQLEXPRESS, but I keep getting the following error:

Backup failed for Server 'localhost\SqlExpress'. (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 someone explain what I'm doing wrong here?

thank

+72
sql-server backup
Mar 07 '10 at 23:10
source share
7 answers

It appears that SQL Server does not have permission to access the C: \ backup.bak file. I would check the permissions of the account that is assigned to the SQL Server service account.

As part of the solution, you can save your backup files to a different location where the root of the C: drive is located. This may be one of the reasons you have permission issues.

+84
Mar 07 '10 at 23:19
source share

I encountered this error when there was no free space for creating a backup.

+38
Oct 31 2018-11-21T00:
source share

Assuming the * .bak file is on the same computer as the instance of SQL Express, this could be an access issue.

If you download procmon http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx , you can filter this path to the file, look for ACCESS_DENIED errors and, if there are any, you can see the account name that is not can access.

+15
Mar 07 '10 at 23:18
source share

I also got this error.

The problem was simply that I had to manually create a complete directory structure for the location of the MDF and LDF file files.

Shame on SQL Server for incorrectly reporting a missing directory!

+10
Mar 05 2018-12-12T00:
source share

I have the same error. I tried to install this by setting a higher resolution for the account using the SQL Client service, however this did not help. The problem was that I only run MS Sql Management studio in my account. So, next time ... make sure you use it as Run as administrator if you are using Win7 with UAC enabled.

+5
Jan 11 '12 at 8:52
source share

Yes, this is a security issue. Verify the folder permissions and the service account that runs SQL Server 2008.

+3
Jul 18 '11 at 7:26 a.m.
source share

I had this error. Nothing worked for me until I ran the SQLServer log file in the MSSQL10_50 log folder. This clearly indicates which file cannot be overwritten. It turned out that the .mdf file is being written to the MSSQL10 data folder. I made sure that the folder has the same SQLServer user rights as the equivalent MSSQL10_50 folder. Then everything worked.

The problem here is that the error detail is logged but not reported, so check the logs.

+3
Apr 10 2018-12-12T00:
source share



All Articles