标签:option ast 执行 config value date files user figure
开启功能
-- To allow advanced options to be changed.
EXEC sp_configure ‘show advanced options‘, 1
GO
-- To update the currently configured value for advanced options. RECONFIGURE
GO
-- To enable the feature. EXEC sp_configure ‘xp_cmdshell‘, 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
master..xp_cmdshell ‘net use \\192.168.0.126\ftpfiles 12345678 /user:server\administrator‘
提示:执行命令成功完成即可。 例如: master..xp_cmdshell ‘net use \\server\data lp /user:server\administrator‘
标签:option ast 执行 config value date files user figure
原文地址:http://www.cnblogs.com/shi-yongcui/p/7284964.html