在SQL stord procdeure中超时 [英] Time out in SQL stord procdeure

查看:92
本文介绍了在SQL stord procdeure中超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有

我的问题是当我调用存储过程时它包含select和insert语句

i意味着我调用select语句并将结果插入变量

然后我尝试将select值插入我的表中插入状态员

按照选择来自链接服务器的方式...它需要大约4分钟来执行它所以当我在存储过程中使用它它什么都不做......我想是的。 p时间已经结束但没有继续。

请任何想法

谢谢



我有什么试过:



声明mytext varchar(500)

mytext =从链接服务器ip和数据库中选择名称

.....

插入mytable(mytextcolumn)

值(@mytext)

hi all
my problem is when i call stored procedure it contain select and insert statements
i mean i call select statement and insert result into variable
then i try to insert the value of select into insert statemen in my table
by the way the select come from linked server... it take about 4 minutes to execute it self so when i used it in stored procedures it do nothing... i think s. p time is out and not continue.
please any ideas
thanks

What I have tried:

declare mytext varchar (500)
mytext = select name from linked server ip and database
.....
insert into mytable ( mytextcolumn)
values (@mytext)

推荐答案

请在此处查看答案:如何设置SQL Server中存储过程的超时 - 堆栈溢出 [ ^ ]
See answer here: How to set timeout for a stored procedure in SQL Server - Stack Overflow[^]


这篇关于在SQL stord procdeure中超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆