I am used to DSN-less connections, but now I changed an ISP provider and I must use DSN. I am trying one script locally (IIS, localhost), and it times out. During the whole time, it is 100% CPU time. What the heck is it doing???
Maybe, I am not using it right. I have successfully created a systedm DSN "links1". And then I wrote this:
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.Open "DSN=links1"
strSQL = "SELECT * FROM URLs"
Dim objRS
Set objRS = objConn.Execute(strSQL)
Response.Write("<table>"
Do while not objRS.EOF
%>
<tr>
<td><%=objRS("ID"
%></td>
<td><%=objRS("URL"
%></td>
<td>
<%if objRS("ID"
=currID then
Response.Write("YES!"
end if
%></td>
</tr>
<%
Loop
Response.Write("</table>"
Any help greatly appreciated!!! ---
---
Maybe, I am not using it right. I have successfully created a systedm DSN "links1". And then I wrote this:
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.Open "DSN=links1"
strSQL = "SELECT * FROM URLs"
Dim objRS
Set objRS = objConn.Execute(strSQL)
Response.Write("<table>"
Do while not objRS.EOF
%>
<tr>
<td><%=objRS("ID"
<td><%=objRS("URL"
<td>
<%if objRS("ID"
Response.Write("YES!"
end if
%></td>
</tr>
<%
Loop
Response.Write("</table>"
Any help greatly appreciated!!! ---
---