如何使用sql连接读取excel文件我不想要oledbconnection。 [英] how to read an excel file using sql connection i do not want oledbconnection.

查看:265
本文介绍了如何使用sql连接读取excel文件我不想要oledbconnection。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有excel文件我想将该excel文件导入数据库。



我想使用sql连接。我不想要oledb连接。



请帮帮我。



请用sql连接发送代码.help me。

i have excel file i want to import that excel file to the database.

for that i want to use sql connection. i do not want oledb connection.

please help me.

please send the code using sql connection.help me.

推荐答案

请使用sql连接发送代码。

还有别的吗?始终首先尝试你想做什么!您可能会发现它并不那么难。



现在,要将excel导入数据库,您需要使用提供的OLEDB并连接您的SQL DB。在这里查看详细信息:

MS支持:如何从Excel导入数据到SQL Server [ ^ ]

MS支持:如何将数据从Microsoft SQL Server导入Microsoft Excel [ ^ ]

动态地将Excel文件导入SQL Server [ ^ ]





很少有关于导入excel看起来很有帮助的讨论:

使用vb.net将Excel导入SQL数据库 [ ^ ]

将Excel电子表格列导入SQL Server数据库 [ ^ ]
please send the code using sql connection.
Anything else? Always TRY first what you want to do! You may find that it''s not that hard.

Now, for importing excel into database, you need to use OLEDB provided and connect your SQL DB. Have a look at details here:
MS Support: How to import data from Excel to SQL Server[^]
MS Support: How to import data from Microsoft SQL Server into Microsoft Excel[^]
Import Excel files to SQL Server dynamically[^]


Few discussions around importing excel that looks helpful:
Importing Excel to SQL Database using vb.net[^]
Import Excel spreadsheet columns into SQL Server database[^]


这篇关于如何使用sql连接读取excel文件我不想要oledbconnection。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆