一些时间数据没有进入数据集中 [英] Some time data is not coming in dataset

查看:183
本文介绍了一些时间数据没有进入数据集中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在数据获取某些时间数据时遇到一个问题,即在2-3次数据刷新页面后未找到数据集异常抛出表[0]时未找到表,所以我不认为编程上的错误可能是网络速度慢或某些问题导致错误.我应该在sql server中实现锁定是什么问题,或者如何等到数据没有进入数据集.这个问题经常出现在我的站点中.是否存在锁定问题,因为我的网站正在读写大量数据.


任何类型的建议或您有任何想法,请帮助我.

Hi,
I have one problem in data fetching some time data not coming in dataset exception throws table[0] not found after refreshing page in 2-3 time data come so i do not think there is programmatically error may be net slow speed or some thing is causing error.what was the problem should i implement locks in sql server or how can i wait till data not comes in dataset.this problem is frequently coming in my site.is there locking problem because my web site it reading and writing lots of data.


Any type of suggestion or you have any kind of idea please help me.

推荐答案

我认为最好先进行数据集空检查,然后再移动逻辑,至少要这样做周围的工作..

i think its better to have a dataset null check before moving for your logic, atleast its a work around..

if(ds != null)
{
   then do things
}


这篇关于一些时间数据没有进入数据集中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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