We have a setup with a v7 client accessing a v8 UDB server running on
AIX. When I call SQLCancel from a second thread on a long running query,
SQLCancel itself simply waits for statement completion too. That was not
the idea, no? Does anyone know how to fix this? Or is it not supported
(despite being described in the DB2 help)?
Regards
Peter Arrenbrecht
Opus Software AG 11 2253
Peter Arrenbrecht wrote: We have a setup with a v7 client accessing a v8 UDB server running on AIX. When I call SQLCancel from a second thread on a long running query, SQLCancel itself simply waits for statement completion too. That was not the idea, no? Does anyone know how to fix this? Or is it not supported (despite being described in the DB2 help)?
What's your long-running query doing on the server?
--
Knut Stolze
Information Integration
IBM Germany / University of Jena
It's doing something like
SELECT COUNT(*)
FROM HugeTable A, HugeTable B
which is, obviously, designed to be running for quite a while so I can
test SQLCancel. It does not work with something like
SELECT *
FROM BigTable
WHERE SomeField LIKE '%m%'
either, though. During the fetch phase it works OK, but that is not
where I need it. It should abort the execution of the initial
SQLExec/SQLPutData.
Knut Stolze wrote: Peter Arrenbrecht wrote:
We have a setup with a v7 client accessing a v8 UDB server running on AIX. When I call SQLCancel from a second thread on a long running query, SQLCancel itself simply waits for statement completion too. That was not the idea, no? Does anyone know how to fix this? Or is it not supported (despite being described in the DB2 help)?
What's your long-running query doing on the server?
Peter Arrenbrecht wrote: It's doing something like
SELECT COUNT(*) FROM HugeTable A, HugeTable B
which is, obviously, designed to be running for quite a while so I can test SQLCancel. It does not work with something like
SELECT * FROM BigTable WHERE SomeField LIKE '%m%'
either, though. During the fetch phase it works OK, but that is not where I need it. It should abort the execution of the initial SQLExec/SQLPutData.
The way I read the CLI Reference is that SQLCancel does not guarantee that
the statement execution is indeed terminated because it says: "How the
function is canceled depends upon the operating system." and later on "If
the original function is canceled, ..."
--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Knut Stolze <st****@de.ibm. com> writes: The way I read the CLI Reference is that SQLCancel does not guarantee that the statement execution is indeed terminated because it says: "How the function is canceled depends upon the operating system." and later on "If the original function is canceled, ..."
Damn, I hate APIs where the name lies :-)
The Truth in Advertising act says that we should have called it
SQLAttemptCance l :-)
--
#include <disclaimer.std > /* I don't speak for IBM ... */
/* Heck, I don't even speak for myself */
/* Don't believe me ? Ask my wife :-) */
Richard D. Latham la*****@us.ibm. com
Well, that was Microsoft who named this one, I believe. Nevertheless, at
least your docs could make a little more specific claims as to where
it's supported and where not.
Richard D. Latham wrote: Knut Stolze <st****@de.ibm. com> writes:
The way I read the CLI Reference is that SQLCancel does not guarantee that the statement execution is indeed terminated because it says: "How the function is canceled depends upon the operating system." and later on "If the original function is canceled, ..."
Damn, I hate APIs where the name lies :-)
The Truth in Advertising act says that we should have called it SQLAttemptCance l :-)
Peter,
When you run the same query from CLP, can you CTRL-C it?
I have never had a case where I couldn't CTRL-C, but it is thinkable and
would need to be looked at.
Cheers
Serge
Peter Arrenbrecht <ar*********@NO XXX.opus.ch> wrote in message news:<41******* *@news.cybercit y.ch>... We have a setup with a v7 client accessing a v8 UDB server running on AIX. When I call SQLCancel from a second thread on a long running query, SQLCancel itself simply waits for statement completion too. That was not the idea, no? Does anyone know how to fix this? Or is it not supported (despite being described in the DB2 help)?
Regards Peter Arrenbrecht Opus Software AG
my preferred editor, Advanced Query Tool, stopped supporting asynchronous
queries in V8. they said it was because V8 stopped supporting it. so,
empirically, it worked. now it doesn't.
now, AQT is an ODBC based product; so shouldn't necessarily behave the
same on *nix. but if it is the same codebase.....
BobTheDataBaseB oy
In reply to Robert's post, and speaking as the developer of AQT. In
DB2 v7 we used the "asynchrono us queries" capability of the DB2 ODBC
Driver; we ran queries asynchronously and issued the SQLCancel in the
same thread. This async capability appears to be removed in the DB2 v8
ODBC Driver. To circumvent this, we are using multi-threading; the
queries run in one thread, a second thread runs the cancel if the user
selects this. The second thread does an SQLCancel; this seems to work
fine for cancelling the query (we have done much testing of this). The
SQLCancel returns immediately (I have *never* find it to hang), though
as Knut says, it can take a while for the query to actually terminate.
Phil Castle. gn*****@rcn.com (robert) wrote in message news:<da******* *************** ****@posting.go ogle.com>... Peter Arrenbrecht <ar*********@NO XXX.opus.ch> wrote in message news:<41******* *@news.cybercit y.ch>... We have a setup with a v7 client accessing a v8 UDB server running on AIX. When I call SQLCancel from a second thread on a long running query, SQLCancel itself simply waits for statement completion too. That was not the idea, no? Does anyone know how to fix this? Or is it not supported (despite being described in the DB2 help)?
Regards Peter Arrenbrecht Opus Software AG
my preferred editor, Advanced Query Tool, stopped supporting asynchronous queries in V8. they said it was because V8 stopped supporting it. so, empirically, it worked. now it doesn't.
now, AQT is an ODBC based product; so shouldn't necessarily behave the same on *nix. but if it is the same codebase.....
BobTheDataBaseB oy
Serge
No, I cannot. Same behavior: it waits for completion of the statement,
but then aborts the fetching of results:
db2 => select count(*) from bookop where bookop_text like '%m%'
1
-----------
0 record(s) selected.
I tested this repeatedly. Normal execution takes about 7 secs. Hitting
Ctrl+C right after starting it takes 7 secs as well.
The setup is as follows:
DB2 v7 client on Windows 2K accessing a DB2 v8 server on AIX.
I shall try to test it with a v8 client as well.
Regards,
peo
Serge Rielau wrote: Peter,
When you run the same query from CLP, can you CTRL-C it? I have never had a case where I couldn't CTRL-C, but it is thinkable and would need to be looked at.
Cheers Serge This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Gary |
last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering
the Ctrl+P key.
Syntax:
System.Windows.Forms.SendKeys.Send("^(P)");
This is not working ..what could be the reason..?
Situation:
I have a menu in my form, which is given a short key "Ctrl+P", now when the
|
by: Mullin Yu |
last post by:
hi,
i have a web service that has file operations on Windows OS, and there may
be a file concurrency issue if only one working directory e.g. c:\working
therefore, i want to have a unique sub directory for each request so as to
get rid of any file concurrency issue, e.g
c:\working\unique-identifier1 for Request #1
c:\working\unique-identifier1 for Request #2
|
by: |
last post by:
Hello,
I am hoping someone else has thought about a date time calculation i need to
perform.
I would like to be able to calculate the number of "working minutes" between
2 dates, given my working week definition.
Lets say I have a working week definition of Monday through Friday, 9 am to
5 pm.
Date1 = January 1st, 2005 at 8 am
|
by: Hardy Wang |
last post by:
Hi:
Is it possible for me to create/open web application from remote machine
other than port 80? And create application directly under virtual web site
instead of creating a virtual directory?
Because there is a developing server in our company running IIS with
multiple web sites, each one has its own port number. In real scenario, no
applications will run under virtual directory, but directly under a site.
Thanks!
|
by: Martin Heuckeroth |
last post by:
Hi
We are working on a webservice application and are having some
problems with the cookies and/or sessions.
We have them working on our intranet but then its not working on the
internet. We have been looking our asses off but can not find a
working solution.
the code we came up with is ...
| |
by: tshad |
last post by:
I have been working with setting my drop boxes to allow double clicking to
select an item.
It worked fine until I made some changes. I then stripped the page down to
the bare essentials to find out why it quit working. I found that if I
didn't have a linkbutton, it quit working?????????
If I changed the linkbutton to a regular button, it quit working.
Here is the page:
|
by: jojobar |
last post by:
Okay, I am trying to do is to test the webresource in 2.0
1. I created a new project with assembly name (and default assembly name)
"Office".
2. I added the following to the AssemblyInfo.cs file (present under the
Properties folder of the project)
3. Now I created a file called test.js on the root folder of the project,
|
by: Don |
last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not
working in certain classes of a project I'm working on. All the options are
set, and it all works fine for most classes, but for some it just suddenly
stopped working. After a build it'll work maybe once or twice, then stop.
I've tried repairing my installation of Visual Studio 2003 but that didn't
help. Is Microsoft working on a fix for this, or is there something...
|
by: MSDNAndi |
last post by:
Hi,
I have a set of simple webservices calls that worked fine using .NET
Framework 1.0.
I am calling a Java/Apache based webservices, the calling side is not able
to supply a proper WSDL.
What it does is to call a webservice with two parameters, one being a
integer, the other one being a "String" which contains XML (not the best
practice, however that is the target interface and we cannot change that).
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |