SQL将Excel文件导入数据库
摘要:
--启用Ad Hoc Distributed Queries: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure select * from OPENROWSET('MICROSOFT.JET.OLEDB.4.0' , 'Excel 5.0;HDR=YES;DATABASE=d:\我的文档\桌面\ORDERS\EORDERS.xls',sync$) 阅读全文
posted @ 2013-01-25 17:24 chenjm 阅读(200) 评论(0) 推荐(0) 编辑