If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Problems with Oracle stored procedure parameters in VBScript code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-24-03, 17:50
IcesI IcesI is offline
Registered User
 
Join Date: Jun 2003
Posts: 1
Arrow Problems with Oracle stored procedure parameters in VBScript code

Hi

I'm having several rather annoying problems calling Oracle stored procedures in a web app I'm working on.

I use the following general syntax in calling the procs and setting up parameters.

set cmd = server.CreateObject("ADODB.Command")
with cmd
.ActiveConnection = aConn
.CommandText = "{CALL get_id_sp(?)}"
.CommandType = adCmdText
end with

cmd.Parameters.Append cmd.CreateParameter("in_id",adNumeric,adParamInput ,10,id)

Several questions:
1) What is the syntax for the .CommandText for calling a proc that takes no arguments?

2) I have run across many problems passing in variables of adNumeric data type (these are declared as Number in the proc). In some cases it works if I change the code to create the parameter on the ASP page as adInteger and cast the value to CInt. For the most part it does not work.

3) I have also run across many problems passing in date parameters that are declared as type Date in the proc and adDate on the ASP page. Passing them in as adDate does not work. Is there any way to pass these dates in? (other than passing them in as adVarChar and modifying all the procs to accept VarChar2 and then convert to date in the proc code?)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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