exec master..xp_cmdshell 'net use \\192.168.1.5\d$\test 密码 /user:192.168.1.5\administrator"
-- Create a logical backup device for the full MyNwind backup.
USE master
EXEC sp_addumpdevice 'disk', 'MyNwind_1',
DISK ='\\192.168.1.5\d$\test\MyNwind_1.dat'
-- Back up the full MyNwind database.
BACKUP DATABASE MyNwind TO MyNwind_1
exec master..xp_cmdshell 'net use \\192.168.1.5\d$\test 密码 /user:192.168.1.5\administrator"
-- Create a logical backup device for the full MyNwind backup.
USE master
EXEC sp_addumpdevice 'disk', 'MyNwind_1',
DISK =\\192.168.1.5\d$\test\MyNwind_1.dat'
-- Back up the full MyNwind database.
BACKUP DATABASE MyNwind TO MyNwind_1