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

execute store procedure from asp

Status
Not open for further replies.

gojohnnygogogogo

Programmer
May 22, 2002
161
GB
hello,
I currently run sql in asp like :


sql = "SELECT * FROM vCurrentandHistoryfinal WHERE (((ID) Like '"&id&"')) "


If cstr(Param) <> &quot;&quot; And cstr(Data) <> &quot;&quot; Then
sql = sql & &quot; And [&quot; & cstr(Param) & &quot;] = &quot; & cstr(Data)
End If
Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)
rs.Open sql, conn, 3, 3


I have created a store procedure with id as the parameter, but don't know how to use sp's with asp.
coiuld somebody post an example of what I need to do ?


thank you for any help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top