CrazyGaz
06-12-2003, 04:07 PM
I have this code
<%
Dim CS
Dim RS
Set CN=Server.CreateObject("ADODB.Connection")
CN.Open "Provider=SQLOLEDB.1;uid=gaz;password=cool;Initial Catalog=asp_forum"
Set RS = CN.Execute ("Select user_name, password FROM login_details")
%>
<html>
<% while not RS.EOF and not RS.BOF %>
<%=RS("user_name")%>
<%RS.movenext
wend %>
</html>
and when I run it I get this error
Apache Active Scripting Runtime Error
[DBMSSOCN]General network error. Check your network documentation.
Line #5, Char #1
my question is what am I doing wrong? the database and table exist as do the fields in the table.
I am using OpenSA's version of Apache which is configured for ASP.
help!
cheers, Gaz
<%
Dim CS
Dim RS
Set CN=Server.CreateObject("ADODB.Connection")
CN.Open "Provider=SQLOLEDB.1;uid=gaz;password=cool;Initial Catalog=asp_forum"
Set RS = CN.Execute ("Select user_name, password FROM login_details")
%>
<html>
<% while not RS.EOF and not RS.BOF %>
<%=RS("user_name")%>
<%RS.movenext
wend %>
</html>
and when I run it I get this error
Apache Active Scripting Runtime Error
[DBMSSOCN]General network error. Check your network documentation.
Line #5, Char #1
my question is what am I doing wrong? the database and table exist as do the fields in the table.
I am using OpenSA's version of Apache which is configured for ASP.
help!
cheers, Gaz