您的位置:首页 > 数据库

sqlserver+job+ 超时

2008-11-26 15:21 309 查看
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:

[code]sp_configure 'remote login timeout', 30
go
reconfigure with override
go

[/code]

Set the remote query timeout to 0 (infinite wait), by using this code:

[code]sp_configure 'remote query timeout', 0
go
reconfigure with override
go

[/code]

已经ok。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: