SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


unable backup to c drive


unable backup to c drive

Author
Message
jimmy 97469
jimmy 97469
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2009 Visits: 4942
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

jimmy 97469
jimmy 97469
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
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)
jimmy 97469
jimmy 97469
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 4
another one:

BackupDiskFile::CreateMedia: Backup device 'C:\RiskGovernance.BAK' failed to create. Operating system error 5(Access is denied.).
crazy4sql
crazy4sql
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1699 Visits: 4490
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
Grant Fritchey
Grant Fritchey
SSC-Forever
SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)

Group: General Forum Members
Points: 40427 Visits: 32665
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 Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28429 Visits: 39963
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

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

AlexGreen
AlexGreen
SSC Rookie
SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)SSC Rookie (39 reputation)

Group: General Forum Members
Points: 39 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.
mr.jeff.freedman
mr.jeff.freedman
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 13
I think there also might be other security issues. Have you tried to backup with SqlBackupAndFTP?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search