数据读取器在读取批量数据时获取空白值 [英] Data Reader is fetching blank values when reading bulk data
问题描述
Hi,
根据要求,我需要从Excel表格中提取数据以excel的形式从Oracle DB中,我需要为电子表格中的所有记录维护父节点和子节点并生成XML。
As per the requirement, i need to fetch the data from Excel sheet which is extracted from Oracle DB in form of excel, I need to maintain Parent and Child nodes for all records from spread sheet and generate XML.
我制作了代码并从数据读取器中获取记录在插槽中并填充临时数据表并移至主数据表。
$
I made the code and fetching records from Data reader in slots and filling the temp Data Table and moving to main data table.
今天我发现了一个新的东西,例如,当数据很大时,数据读取器不会获取所有记录。
Today i observed one new thing like, Data reader is not fetching all the records when data is huge.
我没有得到任何错误,例如"系统资源超出",最多8个lac记录,但有些列没有得到根据来源电子表格更正数据。 值
在源表中,但数据读取器是空白而不是值。
这是在6个lac记录之后发生的。我们对数据读取器/适配器有任何限制吗?
为了更好地理解我附加了在数据读取器从Source Excel工作表中获取数据时在调试模式下拍摄的快照。
For better understanding i am attaching the snap shot which taken on debug mode while data reader fetch data from Source Excel sheet.
如果您在上面的图片中观察到,数据出现在FILE_DESC,SUBJECT和SOURCE的实际源excel表中突出显示的部分和下面的记录。但它在数据
表中显示为空白,这是错误的。
我们有没有其他方法可以将批量数据从Excel提取到数据表而不会丢失任何源数据?
Do we have any alternate way to fetch the bulk data from Excel to Data table without any loss of source data?
请查看并向我提供宝贵的建议。等待回复。
Please have a look and provide me your valuable suggestions. Awaiting for response.
问候,
Crazy Builder
Crazy Builder
推荐答案
嗨 CrazyBuilder,
Hi CrazyBuilder,
感谢您在此发帖。
如果您有任何疑问,请尝试以下链接中的建议。
For your question, please try the suggestions in the link below.
https:// www.codeproject.com/Questions/310337/best-way-to-use-net-Datatable-with-a-huge-data
最诚挚的问候,
Wendy
这篇关于数据读取器在读取批量数据时获取空白值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!