Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Interrupting a long running query with SQLCancel()

50 views
Skip to first unread message

sebflaesch

unread,
Jul 13, 2010, 10:17:08 AM7/13/10
to s...@4js.com
Hi all,

Sybase ASE 15.5, Linux x86 32b, using Sybase ODBC client.

I am trying to implement SQL interruption when the ODBC client with
SQLCancel().

After calling SQLExecute(), the server is working and the client can
normally execute a SQLCancel() to interrupt the SQL execution and get
an error returned by SQLExecute().

Actually this code is working fine with other ODBC clients (SQL Native
Client, DB2 CLI, EasySoft ODBC for SQL Server), but with Sybase I get
an unexpected behavior:

The connection is lost, I get following error:

SQLSTATE 108S01
SQLCODE -30046
[Sybase][ODBC Driver]Connection to Sybase server has been lost. All
active transactions have been rolled back

This is to me an important missing feature.

Thanks for reading
Seb

0 new messages