使用sql server、asp.net批量插入

发布于 2024-10-14 19:17:41 字数 282 浏览 4 评论 0原文

我需要使用 asp.net C# Web 应用程序将 Excel 或 csv 格式文件中的批量数据插入 MS SQLServer(大约 2lac 记录)。

我的问题:

它抛出内存不足异常。

因此,我需要从 asp.net 解决问题,而不是通过 SQLSERVER。

当我在 SQLServer 上尝试批量数据插入/更新时,它工作正常。但是当我尝试使用 ASP.NET 执行相同的过程时,系统抛出“内存不足异常”,

请帮助我解决这个问题。

谢谢 瓦迪韦卢

I need to insert the bulk data into MS SQLServer (approximately 2lac records) from excel or csv format file using asp.net C# web application.

My problem :

It throws out of memory exception.

So, I need to fix the issue from asp.net but NOT THROUGH SQLSERVER.

When I tried the bulk data insert/Update at the SQLServer it works fine. But when I tried to do the same process using the ASP.NET the system throws "Out of Memory Exception"

Kindly help me to solve this problem.

Thanks
Vadivelu

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文