--sp_configure 'xp_cmdshell'
EXEC sp_configure 'allow_updates',0;
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'xp_cmdshell', 1;
RECONFIGURE;
--exec master..xp_cmdshell 'net use T: /del'
exec master..xp_cmdshell 'net use t: \\192.16.0.1\back_log "user_name" /user:192.16.0.1\dw_admin'
--backup database Db_GMS to disk='t:\Db_GMS7.bak'
EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'xp_cmdshell', 0;
RECONFIGURE;
exec master..xp_cmdshell 'net use t: /delete'