R
Roger Moore
I need to return a cursor from an Oracle package using OleDb (we currently
do not have the Oracle provider installed), but I haven't yet found a clear
explanantion of how to do it. I have the usual stored procedure code in my
ASP.NET page, like so:
objConn = New OleDbConnection(Application("dbString"))
objComm = New OleDbCommand(strSQL, objConn)
objComm.CommandType = CommandType.StoredProcedure
objParam = New OleDbParameter()
objParam = objComm.Parameters.Add("AddressID",
OleDbType.Numeric, 7)
objParam.Direction = ParameterDirection.Input
objParam.Value = strTemp
objParam = objComm.Parameters.Add("addressName",
OleDbType.VarChar, 50)
objParam.Direction = ParameterDirection.ReturnValue
objConn.Open()
objComm.ExecuteScalar()
How do I go about retrieving the cusor into a DataSet or DataReader?
Thank you,
Roger
do not have the Oracle provider installed), but I haven't yet found a clear
explanantion of how to do it. I have the usual stored procedure code in my
ASP.NET page, like so:
objConn = New OleDbConnection(Application("dbString"))
objComm = New OleDbCommand(strSQL, objConn)
objComm.CommandType = CommandType.StoredProcedure
objParam = New OleDbParameter()
objParam = objComm.Parameters.Add("AddressID",
OleDbType.Numeric, 7)
objParam.Direction = ParameterDirection.Input
objParam.Value = strTemp
objParam = objComm.Parameters.Add("addressName",
OleDbType.VarChar, 50)
objParam.Direction = ParameterDirection.ReturnValue
objConn.Open()
objComm.ExecuteScalar()
How do I go about retrieving the cusor into a DataSet or DataReader?
Thank you,
Roger