取消存储过程c# [英] Cancelling a Stored Procedure c#

查看:118
本文介绍了取消存储过程c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从c#应用程序执行了存储过程.现在,当用户取消应用程序时,我也想取消存储过程的执行.我该怎么做?

I executed a stored procedure from a c# application..Now When User cancel the application i want to cancel the execution of stored procedure too. How can I do that ?

推荐答案

尝试在SQL Server中进行事务.:)

SQL Server事务和错误处理 [开始交易(Transact-SQL) [ SQL-交易 [使用Pinal Dave的SQL权威之旅 [ ^ ]
try transaction in sql server.. :)

SQL Server Transactions and Error Handling[^]

BEGIN TRANSACTION (Transact-SQL)[^]

SQL - Transactions[^]

Journey to SQL Authority with Pinal Dave[^]


这篇关于取消存储过程c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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