SQL Server 远程共享文件夹备份

提示

消息 15240,级别 16,状态 2,第 12 行
无法写入文件 ''。请确保您有写权限、文件路径有效以及该文件尚不存在。

 

折腾了我一天,现在记录下解决方案,给有需要的人

sp_configure 'show advanced options',1
reconfigure
go

sp_configure 'xp_cmdshell',1
reconfigure
go

master..xp_cmdshell 'net use \\192.168.1.42\myshare\db_backup password  /user:username'
posted @ 2018-01-12 15:08  Varorbc  阅读(1492)  评论(0编辑  收藏  举报