Hello. I am new to ASP and I am trying to write a page that runs a stored procedure on a SQL Server. I have set up a system DSN on the web server that connects to the database that I want to query but I am having trouble debugging my ASP page. I keep getting ISS error 500 and I can’t figure out what is wrong with my script. I have posted my page below. Any advice would be appreciated
thanks
Coladmin
<%@ Language=VBScript %>
<% Option Explicit %>
<%
'open a connection to the UltioPro_CMC Database
Dim objConn
Set objConn = Server.CreateObject("ADOBD.Connection"
objConn.ConnectionString = "DSN=Ultipro_cmc"
objConn.Open
'Create SQL String
Dim strSQL
strSQL = "cmtsp_salary"
'Create a recordset object
Dim objRS
Set ObjRS = Server.CreateObject("ADODB.Recordset"
objRS.Open strSQL, objConn
'Display a listing of Salary Employees and their home Phone Numbers
Response.Write "<B>Employee Phone Numbers</B>"
Response.Write "</B>"
Do While not objRS.EOF
Response.Write "<BR>" & objRS("eepnamelast" & ", " & objRS("eepnamefirst" & "- " & objRS("EepPhoneHomeNumber"
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
objConn.Close
set objConn = nothing
%>
thanks
Coladmin
<%@ Language=VBScript %>
<% Option Explicit %>
<%
'open a connection to the UltioPro_CMC Database
Dim objConn
Set objConn = Server.CreateObject("ADOBD.Connection"
objConn.ConnectionString = "DSN=Ultipro_cmc"
objConn.Open
'Create SQL String
Dim strSQL
strSQL = "cmtsp_salary"
'Create a recordset object
Dim objRS
Set ObjRS = Server.CreateObject("ADODB.Recordset"
objRS.Open strSQL, objConn
'Display a listing of Salary Employees and their home Phone Numbers
Response.Write "<B>Employee Phone Numbers</B>"
Response.Write "</B>"
Do While not objRS.EOF
Response.Write "<BR>" & objRS("eepnamelast" & ", " & objRS("eepnamefirst" & "- " & objRS("EepPhoneHomeNumber"
objRS.MoveNext
Loop
objRS.Close
Set objRS = Nothing
objConn.Close
set objConn = nothing
%>