Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Backups
»
unable backup to c drive
unable backup to c drive
Rate Topic
Display Mode
Topic Options
Author
Message
jimmy 97469
jimmy 97469
Posted Tuesday, May 24, 2011 2:06 AM
Forum 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
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
Posted Tuesday, May 24, 2011 2:24 AM
Ten Centuries
Group: General Forum Members
Last Login: 2 days ago @ 5:22 AM
Points: 1,123,
Visits: 4,423
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
jimmy 97469
jimmy 97469
Posted Tuesday, May 24, 2011 3:12 AM
Forum 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
jimmy 97469
jimmy 97469
Posted Tuesday, May 24, 2011 3:15 AM
Forum 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
crazy4sql
crazy4sql
Posted Tuesday, May 24, 2011 3:20 AM
SSC Eights!
Group: General Forum Members
Last Login: Thursday, May 16, 2013 8:10 PM
Points: 876,
Visits: 3,731
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
Grant Fritchey
Grant Fritchey
Posted Tuesday, May 24, 2011 4:12 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 9:37 AM
Points: 13,381,
Visits: 25,168
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
Lowell
Lowell
Posted Tuesday, May 24, 2011 5:49 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 9:34 AM
Points: 11,638,
Visits: 27,721
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
AlexGreen
AlexGreen
Posted Friday, June 17, 2011 8:39 AM
Grasshopper
Group: General Forum Members
Last Login: Tuesday, February 05, 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
mr.jeff.freedman
mr.jeff.freedman
Posted Friday, January 25, 2013 8:45 AM
Forum Newbie
Group: General Forum Members
Last Login: Thursday, February 07, 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 »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.