Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbscript - Attempt to Execute Oracle Stored Proc - Undefined Error

Status
Not open for further replies.

smedvid

MIS
May 28, 1999
1,228
0
0
US
Certainly a strange one for me...
I am getting an Undefined Error from Provider; when I attempt to execute an Oracle Stored Procedure in vb script and run from DOS via cscript. This code works for other SPs I execute via VBS.

I confirmed I can run Proc in Oracle SQL*Developer, TOAD and SQL*Plus.
-- > EXEC MYSCHEMA.MY_SP_NAME_HERE

Any hints are appreciated. tia, Steve


Code:
Set conn = CreateObject("ADODB.Connection")
conn.Open strConn
Set Cmd =  CreateObject("ADODB.Command")
With Cmd
  .ActiveConnection = conn 
  .CommandType = 1  ' 1 is text 4 is stored procedure 'Requires the adovbs.inc file or typelib meta tag
  .CommandText = "{ call MYSCHEMA.MY_SP_NAME_HERE() }"
  .CommandTimeout = 99999
End With
   
cmd.Execute



Steve Medvid
IT Consultant & Web Master
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top