Oracle Enterprise Mgr.
Tweaked the CareerPathSalesPositionNumber Procedure to return a Number instead of a Cursor Reference so now the declaration looks like this in the Package Declaration:
PROCEDURE CareerPathSalesPositionNumber(InParm IN NUMBER, OutParm OUT NUMBER);
In the package body the OPEN CURSOR FOR SELECT... is replaced with A SELECT INTO which looks something like:
SELECT DISTINCT
columnx INTO outParm
FROM
tablex
WHERE ....
VS .net 2003
Grabbing the return value is slightly different than using the Cursor Reference to fill a DataTable:
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("InParm", OracleType.Number).Value = iInParm;
cmd.Parameters.Add("OutParm", OracleType.Number).Direction = ParameterDirection.Output;
cmd.ExecuteNonQuery();
iOutParmVal = Convert.ToInt32(cmd.Parameters["OutParm"].Value);
SQL+Plus Worksheet
Finished slogging test data into the DB. What a pita!
Tuesday, May 11, 2004
Subscribe to:
Post Comments (Atom)
C# Sucks!
JK!! Seriously, though, somewhere around C#-3 we should have inculcated ourselves with the question: "Does 'CAN' == 'SHOULD...
-
That pesky problem has reared its ugly head again! I remembered that its a permissions problem but forgot the wrinkle where you have to REMO...
-
Today I learned that it is possible to call private and protected methods by using reflection. This is a great technique for Unit Testing su...
No comments:
Post a Comment