如何修复在操作完成之前经过的超时时间或服务器没有响应 [英] How to fix the timeout period elapsed prior to completion of the operation or the server is not responding
问题描述
大家好
我有带有sql server数据库的asp.net网站。我的一张桌子有大约400,000条记录。我的问题是每当我运行我的qoerys时,这行中会抛出这个错误:
mySqlDataAdapter.Fill(ds);
超时已到期。操作完成之前经过的超时时间或服务器没有响应
这是什么错误?它与我的桌子的巨大记录或我的服务器的选项有关。
顺便说一下,我的服务器是localhost。
有没有人帮助我?
我尝试了什么:
如何修复之前经过的超时时间完成操作或服务器没有响应
SqlDataAdapter adp = new SqlDataAdapter();
adp.SelectCommand.CommandTimeout = 0 ; // 在命令对象上设置超时
您可以在下面查看,以验证sql server端的设置。希望这会有所帮助。
SQL SERVER - 超时已过期。操作完成之前经过的超时时间 - 使用Pinal Dave访问SQL权限 [ ^ 一>
Hi all
I have asp.net web site with sql server data base. One of my table has about 400,000 records. My problem is that whenever I run my qoerys this error thrown in this line:
mySqlDataAdapter.Fill(ds);
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
What is this error ? is it related to huge records of my table or options of my server.
By the way, my server is localhost.
Is there any one who help me?
What I have tried:
how to fix The timeout period elapsed prior to completion of the operation or the server is not responding
SqlDataAdapter adp = new SqlDataAdapter(); adp.SelectCommand.CommandTimeout = 0; // Set the Time out on the Command Object
Can you check below, to verify the settings in the sql server side. Hope this helps.
SQL SERVER - Timeout expired. The timeout period elapsed prior to completion of the operation - Journey to SQL Authority with Pinal Dave[^]
这篇关于如何修复在操作完成之前经过的超时时间或服务器没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!