Hello,
I usually put my SQL queries embedded into my asp pages, but I want to start using stored procedures ( MS SQL 7).
how can I change this to a store procedure and pass parameters from my asp page to the sp ?
;
strSQL = ""
'set connection string to local variable-I use a DSN-less connection
Set conn = Server.CreateObject("ADODB.Connection"

conn.open "EdNoticeBoard","Ednoticeboard","ednoticeboard"
%>
<%
'build the sql statement based on the input from the form
strSQL = "INSERT INTO tblInTouch(Title, Memo, MyType, FileLocation, Name, Email, Telephone, StartDate, EndDate, UserIP, UserName)"
strSQL = strSQL & " SELECT "
strSQL = strSQL & "'" & request("Title"

strSQL = strSQL & "'" & request("Memo"

strSQL = strSQL & "'" & request("MyType"

strSQL = strSQL & "'" & request("FileLocation"

strSQL = strSQL & "'" & request("Name"

strSQL = strSQL & "'" & request("Email"

strSQL = strSQL & "'" & request("Telephone"

strSQL = strSQL & "'" & request("StartDate"

strSQL = strSQL & "'" & request("EndDate"

strSQL = strSQL & "'" & request("UserIP"

strSQL = strSQL & "'" & request("UserName"

conn.execute(strSQL)
thank you in advance,
Jamie