Excel导入SQL SERVER中
来源:互联网 发布:微商城免费源码大全 编辑:程序博客网 时间:2024/05/18 15:05
--Excel导入SQL SERVER中
--表结构不存在可以使用
--启用Ad Hoc Distributed Queries:
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
select * into serv_user_bak1 from
OpenRowSet('microsoft.jet.oledb.4.0','Excel 8.0;HDR=yes;database=c:/test.xls;','select * from [Sheet1$]')
---使用完成后,关闭Ad Hoc Distributed Queries:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
-----------------------------------------------------------
--表结构存在可以使用
--启用Ad Hoc Distributed Queries:
exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
insert into serv_user_bak1
SELECT * FROM
OpenRowSet('microsoft.jet.oledb.4.0','Excel 8.0;HDR=yes;database=c:/test.xls;','select * from [Sheet1$]')
---使用完成后,关闭Ad Hoc Distributed Queries:
exec sp_configure 'Ad Hoc Distributed Queries',0
reconfigure
exec sp_configure 'show advanced options',0
reconfigure
- Excel导入SQL SERVER中
- 将Excel导入到SQL Server中!
- 从sql server中导入/导出 excel
- Excel数据如何导入SQL Server中
- excel导入到sql server数据库中
- sql server导入excel
- 把Excel中数据导入到SQL Server中
- Sql server中EXCEL导入到数据库中,出现失败
- excel导入到SQL SERVER
- sql server查询导入EXCEL
- 将Excel导入SQL Server
- sql server Excel 数据导入
- 从Excel导入sql server
- excel数据导入SQL SERVER
- Excel 导入sql server 数据库
- Sql Server导入导出Excel
- Excel 导入 SQL Server 步骤:
- Sql Server 导入导出Excel
- oracle plsql中使用正则表达式。
- 最近遇到的一些问题及发现
- 颜色取反 rgb COLORREF
- sql 分页
- “一片清心”在“砂壶”(转)
- Excel导入SQL SERVER中
- JPEG 原理详细实例分析及其在嵌入式 Linux 中的应用
- 如果突然没有了QQ
- 初谈Python的不同一【笔记,观后感】
- 滚铁环,跳橡皮筋,斗鸡,打弹珠,老鹰捉小鸡…………
- 虽然是LPC但对UART FIFO的硬件原理说的比较清楚
- 使用autoconf、automake等来制作一个以源代码形式(.tar.gz)发布的软件、并可在执行configure时使用自定义参数
- 在C6000系列DSP中使用EMCV
- vb.net与数据库连接