I am trying to execute stroed procedure with a parameter. I have read a bunch of articles on it and found this to be a good way to do it, but I am having no luck. Can someone please tell me what is wrong. I have a feeling I am missing something dumb.
<%
Response.Buffer = true
Dim oConn, sSQL, oRS, dbConn
dbConn= "Provider=SQLOLEDB;" & _
"Password=test;" & _
"User ID=web;" & _
"Initial Catalog=2002-Current;" & _
"Data Source=DBSERVER3;"
Set oConn = Server.CreateObject("ADODB.Connection"
oConn.Open(Application("dbConn"
)
sSQL = "SP_Web_Summary_Query_By_EntityID''ch000000000''" '
Set oRS = oConn.Execute(sSQL)
Do Until oRS.EOF
Response.Write(oRS.Fields("st.a01"
)
oRS.MoveNext
Loop
%>
Here is my error.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/secure/administrators/test.asp, line 15
<%
Response.Buffer = true
Dim oConn, sSQL, oRS, dbConn
dbConn= "Provider=SQLOLEDB;" & _
"Password=test;" & _
"User ID=web;" & _
"Initial Catalog=2002-Current;" & _
"Data Source=DBSERVER3;"
Set oConn = Server.CreateObject("ADODB.Connection"
oConn.Open(Application("dbConn"
sSQL = "SP_Web_Summary_Query_By_EntityID''ch000000000''" '
Set oRS = oConn.Execute(sSQL)
Do Until oRS.EOF
Response.Write(oRS.Fields("st.a01"
oRS.MoveNext
Loop
%>
Here is my error.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/secure/administrators/test.asp, line 15