Error message when you execute a linked server query in SQL Server: "Timeout Expired"

http://support.microsoft.com/kb/314530

 

有一个任务需要取 link server 中的table , 执行过程出现了

Execution terminated by the provider because a resource limit was reached 类似的错误。

确定是timeout 问题。

 

To work around this, you can reconfigure the timeout setting.

Based on which type of error you encounter, you can reconfigure the timeout setting as follows:

  • Set the remote login timeout to 30 seconds, by using this code:
    sp_configure 'remote login timeout', 30
        go
        reconfigure with override
        go
        
  • Set the remote query timeout to 0 (infinite wait), by using this code:
    sp_configure 'remote query timeout', 0
        go
        reconfigure with override
        go
        

 

 

已经ok。

 

 

 

 

 

posted on 2008-11-26 15:21  杨发达  阅读(461)  评论(0编辑  收藏  举报