Hi. I am using DB2 v9.1 fixpack 2.
I was wondering if there is a way to use the with hold option when using the prepare statement. Or, is there another way that I can do what I need to?
I have a procedure that dynamically creates and drops a table. So, I am using a prepare statement to get all the values from one of the columns. I am then calling a procedure for each returned row. However, the procedure that I am calling has a commit. This is causing my cursor to close. Is there any way that I can keep the cursor opened?
Thanks
3 1857
Hi. I am using DB2 v9.1 fixpack 2.
I was wondering if there is a way to use the with hold option when using the prepare statement. Or, is there another way that I can do what I need to?
I have a procedure that dynamically creates and drops a table. So, I am using a prepare statement to get all the values from one of the columns. I am then calling a procedure for each returned row. However, the procedure that I am calling has a commit. This is causing my cursor to close. Is there any way that I can keep the cursor opened?
Thanks
How about using a holdable cursor?
http://publib.boulder. ibm.com/infocenter/cscv/v10r1/index.jsp?topic =/com.ibm.cloudsc ape.doc/cdevconcepts412 75.html
How about using a holdable cursor?
http://publib.boulder. ibm.com/infocenter/cscv/v10r1/index.jsp?topic =/com.ibm.cloudsc ape.doc/cdevconcepts412 75.html
When looking at the link, it looks like this refers to using Java to open the cursor. I am trying this from a DB2 internal stored procedure.
When looking at the link, it looks like this refers to using Java to open the cursor. I am trying this from a DB2 internal stored procedure.
You should be able to use WITH HOLD with a PREPARE. Are you using LUW or z/OS?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: eman1000 |
last post by:
I was recently looking at the prototype library
(http://prototype.conio.net/) and I noticed the author used the
following syntax:
Object.extend(MyObj.prototype, {
my_meth1: function(){},
my_meth2: function(){}
});
to define new methods on the MyObj prototype object. Object.extend
|
by: Rasmus Kromann-Larsen |
last post by:
The With Conundrum
I'm currently writing a master thesis on (preparations for) static
analysis of JavaScript, and after investigating the with statement, it
only even more evident to me that the with statement is indeed bad.
My initial thoughts on with were based on:
http://yuiblog.com/blog/2006/04/11/with-statement-considered-harmful/
I built some examples to investigate - and later try to "eliminate"
|
by: samjnaa |
last post by:
Please check for sanity and approve for posting at python-dev.
In Visual Basic there is the keyword "with" which allows an object-
name to be declared as governing the following statements. For
example:
with quitCommandButton
.enabled = true
.default = true
end with
|
by: Ivan Voras |
last post by:
Hi,
I'm looking for a construct that's similar to (Turbo) Pascal's "with"
statement. I read about the Python's new "with" statement, but I was
dissapointed to learn that it does something different (I still don't
see how it's better than try..except..finally, but that's not my question).
Is there something similar to what I want that's Pythonic enough?
(If you're not familiar with Pascal, here's how it works:
|
by: Mike N. |
last post by:
Can someone tell me if there is a C# equivelent to the VBA 'with'
statement that works like this:
Set myControl = CommandBars(PopUpToUse).Controls.Add(msoControlButton,
before:=5)
With myControl
.BeginGroup = True
.Caption = "Insert Row(s)"
.OnAction = "InsertRows"
.FaceId = 295
| |
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
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...
| |