Oracle Stored Procedure as Data Source
Using: Windows 2000 SP3
PowerBuilder 8.0.3 Build 9704,
JDBC Database Connection
JVM.dll is coming from D:\Program
CLASSES12.zip is coming from D:\Oracle\ora81\jdbc\lib
When attempting to create a dw from an Oracle stored procedure source, the
lower portion of the create dw wizard displays the following: "Procedure
SP_SECURITY " with no source following. Under the hood (via network
analyzer), we see that a SELECT statement is sent to the Oracle database
requesting the source of our sel...Calling a stored procedure inside another stored procedure (or "nested stored procedures")
Hi all - I'm trying to optimized my stored procedures to be a bit easier to maintain, and am sure this is possible, not am very unclear on the syntax to doing this correctly. For example, I have a simple stored procedure that takes a string as a parameter, and returns its resolved index that corresponds to a record in my database. ie
exec dbo.DeriveStatusID 'Created'
returns an int value as 1
(performed by "SELECT statusID FROM statusList WHERE statusName= 'Created')
but I also have a second stored procedure that needs to make reference to&n...storing data on temperory basis before storing in database
i want the user to be able to add list of members from a database storing all the eligable people and viewd on another control..i did it by creating two gridviews and when one is selected from the first it is added to the second,,,directly.....
but that is not what i am required to do....i want the user to select users and see them on the control below (by control a mean a grid view or a tablular entity but the grid view can only display the data to the datasource)...and once the submit button is clicked then the data chosen should be copied to the database...i thought about creating ...Using ADO.NET Execute Second Stored Procedure Depending of Output of First Stored Procedure
When a user logs onto the app, I capture their UserId, today's date and thier WINNT using ADO.NET calling a stored procedue-no problem.
Now, once the above mention fields have been populated, when the same user logs on again and this time click their daily attendance time, I need to execute and update stored procedure-no problem.
Each time the user logs onto the attendance page, they need to be able to view the previuos time stamps, on page load.- no problem
The problem is that I cannot get all three to work in concert, although they will work independently, somewhat. Sotred proc...How to store a Stored Procedure
I'm using an ADOStoredProcedure to connect to an access 'mdb' database. In access, no matter what I try, I cannot find out how to actually write the stored procedure itself. I have tried adding a query and a module. When using c++ to list the stored procedures available in the mdb file, none show up.
All I want to do is increment a field by +x+, when the ID of a record is passed. Ideally, I'd like to be able to send the new value back to the c++ program after the increment, so I can update my listview.
Thanks in advance for any help/advice.
On 9/15/12...Execute stored procedure from stored procedure
Hello,i need to execute a stored procedure from another stored procedure. For example:StoredProcedure1: Returns a table with columns "year" and "value".StoredProcedure2: Also returns a table with columns "year" and "value".In Stored Procedure3: I would like to use the results from StoredProcedure1 and StoredProcedure2 and join them. Can somebody give me an example how to execute a stored procedure from another one and use the result table for a new command?Kind regards and thanks,carsaw
hi,first off all let me clarify here - you cannot return ta...Calling a Stored Procedure from a Stored Procedure
Can you do this? I have a sp that returns a list of eligible accounts and then I use that list in other sp but I don't want to keep copying the code, I would like to be able to use it as a sub query in other sp but I don't know if this is possible or what the syntax would be.
You cannot do that directly. You can:
1. Use User defined functions which can return a resultset
2. Use a local #temp table which can hold the resultset of
the called stored procedure and use this #temp table
in your subsequent processing
EXEC s...calling a stored procedure from a stored procedure
I'm on ASA 8.02 Build 4411 writing sprocs in WATCOM SQL.
I have a sproc which breaks a given string-parameter into pieces. It's
result set contains the pieces, e.g. last line of sproc: "select item from
This sproc works fine.
Now I need to call this procedure from another procedure which has a
variable result set.
I tried the following:
set ll_retval = 0;
while ll_retval <> 100 and not ll_retval < 0 loop
set li_zaehler = li_zaehler + 1;
fetch next sp_breakstrin...How to write a stored procedure to copy the data from one database to another database
I want to copy the data from one database to another database every 12 hrs.(This is variable). Say for example I have 3 applications and I want to copy the data from Parentdatabase1 and insert into CopyofParentdatabase1 for every 6 hrsParentdatabase2 and insert into CopyofParentdatabase2 for every 8 hrsParentdatabase3 and insert into CopyofParentdatabase3 for every 12 hrsI have heard that we can do this by using SQL Server Integration Services but as of now we cannot use SSIS. So I want to do this using Stored procedures. Is there a way to schedule the batch job for to run all these st...Best method for storing data
I have a situation where I need to store an array of bytes. What would be the best SQL datatype for that? It is a fixed length of three.Cheers, Kevin...stored procedure data source
when i try to create a dw based on a stored procedure as the datasoure( in
PB 7.0), i'm not getting any of the the procedures in the "select stored
procedure" selection window, why is this so? i've all the sp_pb70..
procedures available in the sybsystemprocs and able to open the procedure
from within the PB database painter.
i'm able to create the same in PB 8.0
thanks in advance
...stored procedure as data source
My stored procedure consists of
OPEN cursor for
FROM ( SELECT .......
FROM (SELECT ......
GROUP BY .... ) table1,
ORDER BY..... ;
The nested SELECT works as stand-alone SQL and returns rows correctly.
When placed in the stored procedure to be used as a data source for
...Stored Procedure as Data Source
I am attempting my first datawindow using an Oracle stored procedure as
the datasource. I have as of yet been unable to make it work. I would
appreciate anybody that has used an Oracle stored procedure linked to a
datawindow to possibly e-mail me any source procedure they have as well
as steps to link the two. My problem seems to lie either in my IN/OUT
parameters or my steps in PowerBuilder to link it. When I go to the
painter in a new datawindow and choose my procedure out of the listing,
I don't see anywhere to choose the columns I want. I am also confused
with the m...Stored procedure data source...
I would like to use an ASE informational stored procedure as the data source for a datawindow.
The stored procedure is "sp_showplan <spid>, null, null, null".
How can I make this happen ?
Thanks in advance.
Since I didn't get any comments on the previous post I'll try to give a little more info...
The output from sp_showplan does not come from a standard "select" statement. I have successfully created other datawindows with a stored procedure as the datasource.
Has anyone had any luck with building a datawindow with one of t...