sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go
------net Driver
----------net use [挂载盘符] [目标网络位置] [pwd] /user:[username]
exec xp_cmdshell 'net use Z: \\192.168.200.45\user96 user96 /user:user96 '
go
------nfs
-------------- mount [网络位置] [挂载盘符]
--exec xp_cmdshell 'mount \\192.168.200.45\data2\nfs Y:'
--go
sp_configure 'xp_cmdshell',0
reconfigure
go
sp_configure 'show advanced options',0
reconfigure
go