I am using the following syntax in sql 2000 in order to transfer the backup across the network to a backup machine:
xp_cmdshell N'copy /Y c:\mssql7\backup\bill_backup.bak \\Backup\backups\Bill\Backup'
The problem I am experiencing is that when I run this script, I get the response:
Access is denied.
0 file(s) copied
Can anyone tell me what I am doing wrong?Yea, your service account doesn't have rights to the box..
besides, backing up across the network can't be a good idea..
why not dump it locally and then move it?
Still, don't you think it's a security thing?|||Originally posted by Brett Kaiser
Yea, your service account doesn't have rights to the box..
besides, backing up across the network can't be a good idea..
why not dump it locally and then move it?
he is backing up locally and then trying to copy it over the network .. Brett
read the post again
xp_cmdshell N'copy /Y c:\mssql7\backup\bill_backup.bak \\Backup\backups\Bill\Backup'|||Ok, ive given up and having sql do the move for me. Not exactly sure whats causing the problem, but I have worked around it. I have just written a bat file that copies over a mapped drive that is run thru the schedule tasks interface. Not as clean as I would like, but it works.
Thanks again guys
Showing posts with label transfer. Show all posts
Showing posts with label transfer. Show all posts
Thursday, March 8, 2012
Thursday, February 16, 2012
backup/restore
hi,
I want to know if there is a way - other than backup and restore database (because restore takes too much time as the DB size grows) - to transfer all the data from one database on the server to another on a local SQLServer. it has to be done daily, so that the manager will always have an updated copy of the data on his machine.
Any help?
Thanks in advance
you can configure replication / log shipping / database mirroing etc. but it will impact the production server performance and it nees to be monitored/administered constantly
Madhu
Subscribe to:
Posts (Atom)