Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 07:25 AM
Phil Castle
Guest
 
Posts: n/a
Default Async Processing and DB2 V8

I wonder if anyone can help me with this problem.
I have an ODBC/CLI application that runs queries against DB2. In order
to allow my users to cancel an active query, I run the SQL statements
in async mode. This is done by calling SQLSetStmtAttr with option
SQL_ASYNC_ENABLE. This has worked fine for years against all DB2s
between V2 and V7. However this no longer works for users running the
DB2 V8 Client. Also, I now notice that in the V8 manuals,
SQL_ASYNC_ENABLE is no longer given as being an valid option for
SQLSetStmtAttr. Has this functionality been removed from the DB2
Client, or is something else going on?

Phil Castle.
  #2  
Old November 12th, 2005, 07:25 AM
Knut Stolze
Guest
 
Posts: n/a
Default Re: Async Processing and DB2 V8

Phil Castle wrote:
[color=blue]
> I wonder if anyone can help me with this problem.
> I have an ODBC/CLI application that runs queries against DB2. In order
> to allow my users to cancel an active query, I run the SQL statements
> in async mode. This is done by calling SQLSetStmtAttr with option
> SQL_ASYNC_ENABLE. This has worked fine for years against all DB2s
> between V2 and V7. However this no longer works for users running the
> DB2 V8 Client. Also, I now notice that in the V8 manuals,
> SQL_ASYNC_ENABLE is no longer given as being an valid option for
> SQLSetStmtAttr. Has this functionality been removed from the DB2
> Client, or is something else going on?[/color]

The functionality should still be there for backward compatibility. As far
as I heard (that's not official, mind you!), support for async execution
will be removed is some future version of DB. You might want to move to
threaded applications and use the CLI call "SQLCancel" to interrupt
queries.

That should also be better for your applications because you don't have to
check all the time whether your query is already completed. Once the query
is completed, the thread running the SQLExecute will become unblocked right
away.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,335 network members.