B
Bob Clegg
Hi,
I am trying my first attempt at calling an Oracle Procedure using the
Micosoft Oracle data client.
Can any one spot what I am doing wrong?
I get Oracle Error 06550 'Wrong number or types of arguments in call'
The table contains 14 columns number(10)
The proc was generated by Oracle Migration Workbench from an SQL server
proc. I have altered the RC1 Parameter type from 'IN OUT' to 'OUT' to match
the code which was drawn from one of the help examples.
thanks
bob
CALLING CODE:
*********************
Dim cmdConn As New OracleClient.OracleCommand
Dim cmdSource As OracleClient.OracleDataReader
Dim myDBNUll as object
Try
myDBNull = Convert.DBNull
strSQL = "proc_GetColWidths"
cmdConn = New OracleClient.OracleCommand(strSQL, New
OracleClient.OracleConnection(mstrConn))
cmdConn.Parameters.Add(New OracleClient.OracleParameter("xx",
OracleClient.OracleType.Cursor, 2000, ParameterDirection.Output, True, 0, 0,
"", DataRowVersion.Default, myDBNUll))
cmdConn.CommandType = CommandType.StoredProcedure
cmdConn.CommandText = strSQL
cmdConn.Connection.Open()
cmdSource = cmdConn.ExecuteReader(CommandBehavior.CloseConnection)'FAILS
HERE!!!!!
************************************************
ORACLE Procedure :
########################################
PROCEDURE PROC_GETCOLWIDTHS(
RC1 OUT Omwb_emulation.globalPkg.RCT1)
AS
StoO_selcnt INTEGER;
StoO_error INTEGER;
StoO_rowcnt INTEGER;
StoO_crowcnt INTEGER := 0;
StoO_fetchstatus INTEGER := 0;
StoO_errmsg VARCHAR2(255);
StoO_sqlstatus INTEGER;
BEGIN
OPEN RC1 FOR
SELECT *
FROM GridColWidths;
END PROC_GETCOLWIDTHS;
#######################################################
I am trying my first attempt at calling an Oracle Procedure using the
Micosoft Oracle data client.
Can any one spot what I am doing wrong?
I get Oracle Error 06550 'Wrong number or types of arguments in call'
The table contains 14 columns number(10)
The proc was generated by Oracle Migration Workbench from an SQL server
proc. I have altered the RC1 Parameter type from 'IN OUT' to 'OUT' to match
the code which was drawn from one of the help examples.
thanks
bob
CALLING CODE:
*********************
Dim cmdConn As New OracleClient.OracleCommand
Dim cmdSource As OracleClient.OracleDataReader
Dim myDBNUll as object
Try
myDBNull = Convert.DBNull
strSQL = "proc_GetColWidths"
cmdConn = New OracleClient.OracleCommand(strSQL, New
OracleClient.OracleConnection(mstrConn))
cmdConn.Parameters.Add(New OracleClient.OracleParameter("xx",
OracleClient.OracleType.Cursor, 2000, ParameterDirection.Output, True, 0, 0,
"", DataRowVersion.Default, myDBNUll))
cmdConn.CommandType = CommandType.StoredProcedure
cmdConn.CommandText = strSQL
cmdConn.Connection.Open()
cmdSource = cmdConn.ExecuteReader(CommandBehavior.CloseConnection)'FAILS
HERE!!!!!
************************************************
ORACLE Procedure :
########################################
PROCEDURE PROC_GETCOLWIDTHS(
RC1 OUT Omwb_emulation.globalPkg.RCT1)
AS
StoO_selcnt INTEGER;
StoO_error INTEGER;
StoO_rowcnt INTEGER;
StoO_crowcnt INTEGER := 0;
StoO_fetchstatus INTEGER := 0;
StoO_errmsg VARCHAR2(255);
StoO_sqlstatus INTEGER;
BEGIN
OPEN RC1 FOR
SELECT *
FROM GridColWidths;
END PROC_GETCOLWIDTHS;
#######################################################