运行sql查询直到提到的时间范围 [英] Run sql query till mentioned time frame

查看:73
本文介绍了运行sql查询直到提到的时间范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道有没有告诉SQL运行查询直到提到的时间框架(让我们说5分钟)?



如果查询未在给定的时间范围内执行,无论如何都会收到错误消息或错误代码或者我将会知道查询未运行的内容?



预先感谢您的帮助。



Anshul。

解决方案

对于Sybase数据库,您需要安装Job Scheduler才能创建计划(作业)。



看看这里: http://www.experts-exchange.com/Database/Sybase/Q_25357412.html [ ^ ]。



官方文件: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc20001.1570/pdf/jsusers.pdf [ ^ ]


你能指定你使用的是哪个数据库吗?



对于SQL Server,你可以在这里找到答案:



http://stackoverflow.com/questions/7653880/t- sql-stop-query-after-certain-time [ ^ ]


嗨丹尼尔,



我正在使用Sybase16

Hi,

I would like to know is there anyway to tell SQL for running query till mentioned time frame (let's say for 5 min)?

If query not executed within given time frame, is there anyway to get error message or error code or something thru which i will come to know that query did not run?

Thanks in advance for help.

Anshul.

解决方案

For Sybase database you need to install Job Scheduler to be able to create schedule (job).

Have a look here: http://www.experts-exchange.com/Database/Sybase/Q_25357412.html[^].

Official documentation: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc20001.1570/pdf/jsusers.pdf[^]


Can you specify which database are you using?

For SQL Server you can find an answer here:

http://stackoverflow.com/questions/7653880/t-sql-stop-query-after-certain-time[^]


Hi Daniel,

I am using Sybase16


这篇关于运行sql查询直到提到的时间范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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