![](/img/trans.png)
[英]'Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.'
[英]Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. working on remote windows .net
我正在使用C#Windows应用程序,需要连接MS SQL Server并使用SP。 但是我收到“超时已过期。在操作完成之前超时时间已过,或者服务器没有响应。” 错误。 在远程系统的应用程序上出现此错误。 我已经指定“ command.CommandTimeout = 0;” 定时器设置为5000; 我需要按计划的时间运行查询/ SP。 命令是SqlCommand对象。 但是得到相同的。
请任何人帮助! 提前致谢。
首先,您必须手动检查是否可以使用SQLServer Management Studio连接到数据库。如果是,则必须设置:
command.CommandTimeout = 60;
祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.