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 > named notation with Oracle Stored Procedures from ASP???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-03, 11:48
PaulS PaulS is offline
Registered User
 
Join Date: Oct 2003
Posts: 6
Angry named notation with Oracle Stored Procedures from ASP???

Is there anyway to pass/add parameters to Oracle Stored Procedures from an ASP page using the named notation rather than the order/number notation, i.e SPTest(TestID => 1,name => "Monkey")

Currently have following code

Code:
set objcommand = Server.CreateObject("ADODB.Command")
objcommand.ActiveConnection = objconn
objcommand.CommandType = 4
objcommand.CommandText = "spTest"
		
Set oParamAdd = objcommand.Parameters
		
oParamAdd.Append objcommand.CreateParameter("pName",129,&H0001)
objcommand("pName") = "blarblarblar"	
		
objcommand.Execute
If pName is not the first parameter declared in the store Procedure then it falls over.

If anyone can help me use the named notation that would be great.

Thanks
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