Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

unable backup to c drive Expand / Collapse
Author
Message
Posted Tuesday, May 24, 2011 2:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 24, 2011 3:04 AM
Points: 3, Visits: 4
Hi There,

Lately I've installed new server with downgraded to windows 2003 server, and I am using Sql Server 2005 Express with custom internal application. I noticed that the backup of sql unble to save into C drive(NTFS), but when my vendor tried manual and schedule backup to D drive, it was sucessful. I'm logging in by using admistrative ID and into SQL using windows authentication mode. Could it due to security setting in C drive or something else ?


Any idea would be appreciated.

regards,
Jimmy
Post #1113811
Posted Tuesday, May 24, 2011 2:24 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 3:18 AM
Points: 1,155, Visits: 4,638
jimmy 97469 (5/24/2011)
Hi There,

Lately I've installed new server with downgraded to windows 2003 server, and I am using Sql Server 2005 Express with custom internal application. I noticed that the backup of sql unble to save into C drive(NTFS), but when my vendor tried manual and schedule backup to D drive, it was sucessful. I'm logging in by using admistrative ID and into SQL using windows authentication mode. Could it due to security setting in C drive or something else ?


Any idea would be appreciated.

regards,
Jimmy


Jimmy can you post the errors from error log and application logs too.

Can you check the sql agent log-on user has access to the C drive .


Muthukkumaran Kaliyamoorthy

Helping SQL DBAs and Developers >>>SqlserverBlogForum
Post #1113818
Posted Tuesday, May 24, 2011 3:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 24, 2011 3:04 AM
Points: 3, Visits: 4
Erros as below:
Store Procedure: usp_Agent_BackupDatabase_Ex
Error: Cannot open backup device 'C:\RiskGovernance.BAK'. Operating system error 5(Access is denied.).
BACKUP DATABASE is terminating abnormally.

Stack Trace:
at DataAccess.STD.daSTD_CustomProc.Execute(String StoreProcedure)
at GlobalFnc.GlobalCDOFunction.ExecuteCustomStoreProcedure(String StoreProcedure)
Post #1113827
Posted Tuesday, May 24, 2011 3:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, May 24, 2011 3:04 AM
Points: 3, Visits: 4
another one:

BackupDiskFile::CreateMedia: Backup device 'C:\RiskGovernance.BAK' failed to create. Operating system error 5(Access is denied.).
Post #1113831
Posted Tuesday, May 24, 2011 3:20 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 3:10 AM
Points: 880, Visits: 4,092
your id or the group in which your id belongs, doesnt have the permission to modify or copy the file in c drive. Ask windows team for this permission if no alternate available.
Its always advisable that you place your sql related file in some other drive than C(Primary drive)


----------
Ashish
Post #1113832
Posted Tuesday, May 24, 2011 4:12 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 4:56 AM
Points: 15,646, Visits: 28,028
When you tell SQL Server to run a backup, the backup process runs under the context that SQL Server is configured in, not the context in which you are connecting to it. That context does not have access to the C: drive. It doesn't matter whether you do or not. You need to identify which user SQL Server is configured under and change security settings there.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1113868
Posted Tuesday, May 24, 2011 5:49 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 1:24 PM
Points: 12,906, Visits: 31,984
also, the file path might have something to do with it; even with my windows login, I cannot write to the Root of the C:\ drive without "running as Administrator" privileges, but i can write to a folder on that drive(C:\Data\ for example)

Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1113923
Posted Friday, June 17, 2011 8:39 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, February 5, 2013 8:56 AM
Points: 17, Visits: 40
The user under which SQL Server Agent runs doesn't seem to have access to write on drive C:. However, unless you really need it, for security reasons you should avoid saving your backups on the system drive.
Post #1127410
Posted Friday, January 25, 2013 8:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 7, 2013 6:43 AM
Points: 5, Visits: 13
I think there also might be other security issues. Have you tried to backup with SqlBackupAndFTP?
Post #1411767
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse