通过递归数据库调用更新数据表 [英] Updating datatable by recursive database call

查看:73
本文介绍了通过递归数据库调用更新数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在递归数据库调用中更新我的数据表?敌人,例如。我有一个数据表,第一次当我用dataadapter填充数据表时,500行被填充。我再次为
拨打下一条500条记录的数据库电话。所以要更新1000行的数据表。怎么可能。我想使用没有任何List的Datatable / Dataset。此外,Sotred程序的字段可能会有所不同。所以不能硬编码列值。

感谢adavnce

解决方案

您使用DataSet并且可以根据需要存储任意数量的表



你可以在现有的DataTable中添加行。



在其中 [ ^ ]查看可能解决问题的类似问题。

Hi,

How can I get my datatable updated in a recursive database call? Foe eg. I have a datatable and first time when I fill datatable with dataadapter 500 rows are filled. Again I''ve to
make a database call for next 500 records. So the datatable to be updated with 1000 rows. How''s it possible. I want to use Datatable/Dataset without any List. Also the fields from the Sotred Procedure may vary. So cannt hard code column values.
Thanks in adavnce

解决方案

you use a DataSet and you can store as many table as you want
or
you can add rows to the already existing DataTable.

here[^] have a look at the similar question which might solve your problem.


这篇关于通过递归数据库调用更新数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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