| Author |
Message |
bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Fri May 16, 2003 3:50 pm Post subject: Aborting a query |
|
|
Hi,
I'm calling TSQLQuery.Open, and I was wondering if there any way to abort a running query. I have been terminating my application, but I know that isn't a very good idea. Other applications that I use to access Sybase through CTLib have this feature. How can I do it?
Regards,
Bill |
|
| Back to top |
|
 |
VISOCO Support VISOCO Software Support
Joined: 16 Jul 2002 Posts: 96
|
Posted: Sat May 17, 2003 9:26 am Post subject: |
|
|
| Closing of TSQLQuery will cancel an active command (no fetches of remaining records will be done) |
|
| Back to top |
|
 |
bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Thu Mar 11, 2004 11:05 pm Post subject: |
|
|
| Does closing the query call ct_cancel, passing it the CS_CANCEL_ALL command type? |
|
| Back to top |
|
 |
Mat000
Joined: 04 Nov 2003 Posts: 12
|
Posted: Sun Mar 14, 2004 12:52 am Post subject: |
|
|
Hello.
Yes, it does. You can see it in the log. If the command is active ISQLCommand.close method calls ct_cancel with CS_CANCEL_ALL. |
|
| Back to top |
|
 |
|