![](/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.