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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing A Stored Procedure

Status
Not open for further replies.

08091979

Programmer
Joined
Dec 18, 2003
Messages
5
Location
GB
What is the quickest way to execute a SQL Stored Procedure in ASP?
 
A search through some of the previous posts in this forum may help to answer this question. Otherwise, it might be beneficial to post a more specific question or offer some code as to what you have accomplished thus far.

------------------------------------------------------------------------------------------------------------------------
If you don't have a sense of humor, you probably don't have any sense at all.
- Anonymous
 
Code:
<%
fName = request.form("txtFName")
LName = request.form("txtLName")
Email = request.form("txtEmail")
Set Conn = Server.CreateObject("ADODB.CONNECTION")
Conn.Open yourConnString
strProc = "Exec myStoredProcedure @FName='" & fName & "',@LName='" & LName _
& "',@Email='" & Email & "'"
Conn.Execute(strProc)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top