-- 允许配置高级选项
EXEC sp_configure 'show advanced options', 1
GO
-- 重新配置
RECONFIGURE
GO
-- 启用xp_cmdshell
EXEC sp_configure 'xp_cmdshell', 1
GO
--重新配置
RECONFIGURE
GO
exec xp_cmdshell 'net use \\192.168.9.2\jd_data_bak "dnbd" /user:192.168.9.2\dnbd'
go
© 版权声明
文章或来自网络,版权归作者所有,未经允许请勿转载。
THE END