Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a SQL stored proc and passing it a form variable ?
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Calling a SQL stored proc and passing it a form variable ?
Miscellaneous
Thread ID:
00478094
Message ID:
00478094
Views:
48
Whats the syntax for retrieving a form parm and then calling a SQL stored proc, passing it the parm?

In the example below, i am getting the parm PRODUCTID and want to pass it to a stored procedure called "SP_SelectProductsByID".

-----------

Set myConnection = Server.CreateObject("ADODB.Connection")
Set rsTitleList = Server.CreateObject("ADODB.Recordset")
myConnection.Open connectString
requestID = Request.Form("ProductID")
Set RSTitleList = myConnection.Execute(SP_SelectProductsByID ?RequestID)
Reply
Map
View

Click here to load this message in the networking platform