Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am having all kinds of trouble trying to find the correct syntax for
calling an Oracle stored procedure that has 1 input parameter (number) and 1 output parameter (a cursor/resultset) from my VBA code in Excel. The code below generates an error: "ODBC driver does not support the requested properties"...if I change the CommandText syntax I get an Oracle syntax error... Any help would be appreciated: Set cmd = New ADODB.Command Set cmd.ActiveConnection = cn cmd.CommandType = adCmdText cmd.CommandText = "{call test_pkg.test_proc(?, {resultset 100})}" Set paramWeekId = New ADODB.Parameter paramWeekId.Direction = adParamInput paramWeekId.Type = adNumeric paramWeekId.Name = "p_week_id" paramWeekId.Value = lngWeekId cmd.Parameters.Append paramWeekId Set rst = cmd.Execute |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is it possible to run an Oracle PL\Sql procedure within Excel? | Excel Discussion (Misc queries) | |||
Is it possible to run an Oracle PL\Sql procedure within Excel? | Excel Discussion (Misc queries) | |||
How can Oracle DB Stored procedure be called in MS Excel? | Excel Discussion (Misc queries) | |||
Call Oracle Procedure from Excel macro | Excel Programming | |||
Run a stored procedure in Excel 2K | Excel Programming |