使用SQLSERVER的扩展存储过程实现远程备份与恢复

net share ShareForder=c:\AppDataBackup

master..xp_cmdshell 'net use \\10.10.50.212\ShareForder UserPassword /user:DomainName\UserName'

backup database PNC1 to disk='\\10.10.50.212\ShareForder\Database.bak'

net share ShareForder /delete

原文地址:https://www.cnblogs.com/oletan/p/1370184.html