sqlserver bulk insert

开启功能

-- 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'

posted @ 2017-08-04 14:34  雨韵蓝田  阅读(542)  评论(0编辑  收藏  举报