Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default Returning a resultset from Oracle Stored Procedure using ADO (VBA)

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to run an Oracle PL\Sql procedure within Excel? mowee Excel Discussion (Misc queries) 1 January 22nd 10 03:54 PM
Is it possible to run an Oracle PL\Sql procedure within Excel? mowee Excel Discussion (Misc queries) 0 January 22nd 10 03:04 PM
How can Oracle DB Stored procedure be called in MS Excel? Amol Excel Discussion (Misc queries) 1 January 7th 07 10:05 AM
Call Oracle Procedure from Excel macro test[_8_] Excel Programming 3 June 7th 05 01:18 AM
Run a stored procedure in Excel 2K ArthurB Excel Programming 0 February 26th 04 04:46 PM


All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"