您的位置:首页 > 其它

从文本导入导出

2016-01-20 11:15 113 查看
-- 允许配置高级选项

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:\FTP\CTIL1\bol_checkbank.txt -c -t -T'

--表2 loanrate_list从CTIL2中获取

EXEC master..xp_cmdshell 'BCP crm.dbo.loanrate_list in d:\FTP\CTIL2\loanrate_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:\FTP\CTIL3\crm_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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: