-- 允许配置高级选项
EXEC master.sys..spconfigure'show advanced options',1
-- 重新配置
RECONFIGURE
-- 启用xp_cmdshell
EXEC master.sys.sp_configure 'xp_cmdshell', 1
--重新配置
RECONFIGURE
--表1 bol_checkbank从CTIL1中获取
EXEC master..xp_cmdshell 'BCP crm.dbo.bol_checkbank in d:FTPCTIL1ol_checkbank.txt -c -t -T'
--表2 loanrate_list从CTIL2中获取
EXEC master..xp_cmdshell 'BCP crm.dbo.loanrate_list in d:FTPCTIL2loanrate_list.txt -c -t -T'
--表3 crm_m_cust_summary从CTIL3中获取
EXEC master..xp_cmdshell 'BCP crm.dbo.crm_m_cust_summary_test in d:FTPCTIL3crm_m_cust_summary.txt -c -t -T'
-- 允许配置高级选项
EXEC master.sys..spconfigure'show advanced options',1
-- 重新配置
RECONFIGURE
-- 启用xp_cmdshell
EXEC master.sys.sp_configure 'xp_cmdshell', 0
--重新配置
RECONFIGURE