使用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

你可能感兴趣的:(sqlserver)