如何停止SQL SERVER执行 [英] How to stop SQL SERVER execution

查看:393
本文介绍了如何停止SQL SERVER执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在执行搜索功能,它可以工作,但是需要更多时间,所以我必须停止该搜索过程.

我不想让sql命令超时
我点击了取消搜索"按钮后,该搜索应停止.

请给我建议.
谢谢

Hi,

I am doing search functionality,It works but it takes more time then I have to stop that searching process.

I dont want to give timeout of sql command
I have "cancel search" button onclicking on that searching should stop.

Please suggest me.
Thanks

推荐答案

您可以在后台线程上执行查询,然后使用取消"命令取消查询-请参见此讨论 [ ^ ]可能会帮助您.
You can execute your query on a background thread and then cancel it using the Cancel command - see here[^].

This discussion[^] may help you out.


这篇关于如何停止SQL SERVER执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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