11-29-2007 09:27 AM - edited 11-29-2007 09:31 AM
sorry, something went wrong
11-30-2007 03:11 AM
Hi Lorand,
you said : "sorry, something went wrong" .. does this mean that it didn't work?
I am not a labview programmer, so one of the programmers is working on a case i have build in the database. He also made the suggestion of setting this parameter to true.
The major problem of returning a selection state in string format, is the allocation of space used by the string. So you have to allocate a major block of bytes, because you don't know how many bytes you will receive.
At the moment I have made a case in which a procedure returns TYPE ... %ROWTYPE and still we wanna try the TYPE ... REF CURSOR
I will keep this forumn up to date until there is a sollution to build on ..
11-30-2007 03:26 AM
Hi KoosKoets,
might be a bit confusing. I was talking about the set of postings. One posting failed. So I wrote it again. I don't know why now there are multiple entries.
Setting the PLSQLRSet-Attribute did work!!!
###...and still we wanna try the TYPE ... REF CURSOR ###
=> It works also with REF CURSOR
I am now testing the effect on other procedures returning scalar types.
Lorand
11-30-2007 03:44 AM
Ha so it works also for a REF CURSOR ... hmmm now how is this implemented in LabView ? could you please point me out?
Best regards
11-30-2007 04:36 AM
Just set up a parameterized query, described in the toolkit-documentation.
OraOLEDB documentation:
Because there is no predefined data type for REF CURSOR in the OLE DB specification, the consumer mus not bind this parameter.
=> That means: No Questionmark for the OUT-Parameter (REF CURSOR returnvalue)
Hope this helps,
Lorand
11-30-2007 05:49 AM
11-30-2007 07:05 AM
It seems that the cursor doesn't have to be closed, but I'm not sure. The exception "cursor already opened" will not be raised, when you open a already opened ref cursor as it does when you repeatedly open a static cursor.
I have started an oracle-srq about this...
Lorand
11-30-2007 07:35 AM
11-30-2007 07:47 AM
Thanks,
I will keep this in mind.
...how do I rate your reply?
Lorand
12-03-2007 04:15 AM
Lorand, sorry i didn't reply any sooner; i don't know either how to rate replies .. so it is okay ![]()