本文介绍了如何使用C#将数百万条记录存入数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞!In my application i have two datatables and two stored procedures while retrieving the data from stored procedure to datatable i am getting below error An exception of type 'System.OutOfMemoryException' occurred in System.Data.dll but was not handled in user code 我尝试过: i能够在数据库中执行我的查询和存储过程但是在从数据库检索到c#代码时我得到的错误What I have tried:i am able to execute my query and stored procedure in database but while retrieving from database to c# code i am getting above error推荐答案 Quote:当没有足够的内存来继续执行程序时抛出的异常。The exception that is thrown when there is not enough memory to continue the execution of a program. 您正在尝试将过多信息加载到内存中。你需要重新考虑你在做什么以及你是如何做的。 更多信息:异常故障排除:System.OutOfMemoryException [ ^ ] 这篇关于如何使用C#将数百万条记录存入数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!