Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cancelling a stored procedure from Clarion

Status
Not open for further replies.

dadkins

Programmer
Mar 29, 2010
1
US
thread192-621975: I'm calling stored procedures from Clarion. Is it possible to issue a command to cancel the stored procedure once it's been called? I've done some research, but have not found a way to do this.

Thanks
 
Hi!

I am not sure why you want to stop a stored procedure but I assume it is because it is running too long. So, have you researched ways to optimize the code? Anyway, answering your question ::

- Assuming that you are looping in some way in your stored procedure, you can check a global temp table for a value and if it finds it, it gracefully rolls back the changes and exits.

- The brute force way is to find the Process ID and kill the process. Read more at
Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top