exec master..xp_cmdshell 'net use x: \\X.X.X.X\共享名称 password /u:administrator'
然后执行
BACKUP DATABASE [ELTMS_DEV] TO DISK = N'X:\ELTMS_DEV.bak'
转载于:https://www.cnblogs.com/mingyongcheng/archive/2012/03/20/2407889.html
转载于:https://www.cnblogs.com/mingyongcheng/archive/2012/03/20/2407889.html