积极答复者
连接局域网中的数据库服务器把数据库备份到本地

问题
-
看了网上这篇文章,感觉还是没有找到合适的解决方案,请问如何做,如果开启xp_cmdshell的话又有安全性问题,
我之前看过的文章:http://topic.csdn.net/t/20021218/10/1271809.html,使用exec sp_addlinkedserver 感觉复杂
看不明白,好像也不能备份到本地或者还原到局域网中的服务器或者公网中的服务器
答案
全部回复
-
Don't need linked server for backup to remote folder. What you need to do are starting sql services with domain account and using "backup database db_name to disk = '\\host_name\share_name\file.name' with ..." to backup, ensure domain account used has read/write permission in remote share.
-
也许你可以换个角度来思考,让本地的SQL Server去还原UNC路径上的备份档,不过请注意服务启动帐户的权限问题,你可以参考这篇讨论。
以上說明若有錯誤請指教,謝謝。
http://www.dotblogs.com.tw/terrychuang/ -
First, do not use mapped drives. The SQL Service may not see all your user account mappings.
The SQL Service account must have FULL CONTROL over both the SHARE and the underlying NTFS folder to create and restore backups.
SSMS won't directly explore UNC paths but you can paste in the location and it works.这个回复的意思是不是:不要使用映射驱动器,并且连接字符串中的用户对于共享的路径和NTFS文件夹需要有足够的创建和还原权限
SSMS不能直接浏览UNC共享路径不过你能够 。。。
you can paste in the location and it works.
这句话不知道怎麽翻译了