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


Reg: Nas Box Backup


Reg: Nas Box Backup

Author
Message
vs.satheesh
vs.satheesh
SSC-Addicted
SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)SSC-Addicted (473 reputation)

Group: General Forum Members
Points: 473 Visits: 652
Hi

In my company we are using network nas storage.which i am able to share the folder in nas storage using user name and password using run command.But through automatic sql scheduled Query backup is throwing error as Access denied.I am using following sql command


exec ('BACKUP DATABASE [' + @DBName + '] TO DISK = N''\\192.168.0.242\Backups\ScheduleDBBkup\202server\vtu\' +
@DBFileName + '.bak'' WITH NOFORMAT, INIT, NAME = N''' +
@DBName + '-Full Database Backup'', SKIP, NOREWIND, NOUNLOAD, STATS = 100')



In this above Query :\\192.168.0.242\Backups\ScheduleDBBkup\202server\vtu\ is Nas link address.


Please give me solution....
anthony.green
anthony.green
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24110 Visits: 6519
Ensure SQL server service is running as a domain account

Give that domain account permissions on the share


Or

Backup to local disk, and run something like robocopy

Or

Map a network drive at backup time in a cmd step giving username and password to create the path, then backup.



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
When a question, really isn't a question - Jeff Smith
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger


Abu Dina
Abu Dina
SSCrazy
SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)SSCrazy (2.9K reputation)

Group: General Forum Members
Points: 2935 Visits: 3325
vs.satheesh (3/8/2013)
Hi

In my company we are using network nas storage.which i am able to share the folder in nas storage using user name and password using run command.But through automatic sql scheduled Query backup is throwing error as Access denied.I am using following sql command


exec ('BACKUP DATABASE [' + @DBName + '] TO DISK = N''\\192.168.0.242\Backups\ScheduleDBBkup\202server\vtu\' +
@DBFileName + '.bak'' WITH NOFORMAT, INIT, NAME = N''' +
@DBName + '-Full Database Backup'', SKIP, NOREWIND, NOUNLOAD, STATS = 100')



In this above Query :\\192.168.0.242\Backups\ScheduleDBBkup\202server\vtu\ is Nas link address.


Please give me solution....




I may have had this problem in the past and what I did was I Remote Desktoped to the SQL Server Box (using the domain account setup for the SQL Server Service to run) then though Windows Explorer I tried to access the backup folder on the NAS. It then promted me to enter the username and password which I did (this was the same as the one the SQL Server Service Account). I then ticked the save password checkbox and clicked okay. I was then able to see contents of folder on NAS.

After that, you should be able to run the job.

---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
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