从Excel文件中选择1lac Recods以上的数据,然后批量插入到SQL Server数据库中 [英] Selecting Data above 1lac recods from excel file and bulk inserting into sql server database

查看:98
本文介绍了从Excel文件中选择1lac Recods以上的数据,然后批量插入到SQL Server数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在一个项目中,我必须将excel文件数据上传到sql server.

excel文件包含上述1个lac记录,因此当我触发选择查询时,它需要
很长时间,该应用程序甚至被挂起,并引发com异常..

谁能帮我从数据集中的excel文件中获取数据.

此外,我可以使用sql批量复制将其上传到sql服务器.

问候,
Kishor

Hi All,

I am working on a project in which i have to upload excel file data to sql server .

the excel file contains above 1 lac records so when i fire a select query it takes
to long that application even gets hanged and it throws a com exception..

Can anyone please help me to get the data from the excel file in dataset .

Further I can upload it to sql server using sql bulk copy.

Regards,
Kishor

推荐答案

检查这些

用于将数据导入SQL Server的不同选项 [ ^ ]
BCP和;批量插入– Microsoft SQL Server未被充分了解的功能 [导入和导出批量数据 [
Check these

Different Options for Importing Data into SQL Server[^]
BCP & Bulk Inserts – Underappreciated features of Microsoft SQL Server[^]
Importing and Exporting Bulk Data[^]


这篇关于从Excel文件中选择1lac Recods以上的数据,然后批量插入到SQL Server数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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