AntiEarnie
Technical User
Hi All. I have run out of things to try and was hoping somone else might have an idea. My data source is good. I can drop this code into VB6 with only a couple changes and get data back. Every time I try this on the web server I don't get anything though.
**** code ****
<HTML>
<HEAD>
<TITLE>ADO test</TITLE>
</HEAD>
<BODY>
<H1> Critter DB </H1>
<%
Dim con
Dim rst
Dim strSQL
Const adOpenStatic = 3
Const adLockReadOnly = 1
Const adCmdText = 1
Set con = server.CreateObject("ADODB.Connection"
con.Open "test_user_conn_to_pdar_db","test_user","password"
strSQL = "SELECT * FROM TEST_USER.RACE_STATS;"
Set rst = server.CreateObject("ADODB.Recordset"
rst.Open strSQL, con, adOpenStatic, _
adLockReadOnly, adCmdText
rst.MoveFirst
%>
<TABLE BORDER>
<TR>
<TD><B>RACE_NAME</B></TD>
<TD><B>STR_DICE</B></TD>
<TD><B>STR_SIDES</B></TD>
</TR>
<%
do while not rst.EOF
%>
<TR>
<TD><%= rst("RACE_NAME"
%></TD>
<TD><%= rst("STR_DICE"
%></TD>
<TD><%= rst("STR_SIDES"
%></TD>
</TR>
<%
rst.MoveNext
loop
%>
<%
' Clean-up time
rst.Close
con.Close
%>
</TABLE>
</BODY>
</HTML>
**** end code ****
If I drop the html stuff and use "New ADOBC.Connection" and "New ADODB.Recordset" I can get data back in VB6. Can anyone see what I'm missing here?
**** code ****
<HTML>
<HEAD>
<TITLE>ADO test</TITLE>
</HEAD>
<BODY>
<H1> Critter DB </H1>
<%
Dim con
Dim rst
Dim strSQL
Const adOpenStatic = 3
Const adLockReadOnly = 1
Const adCmdText = 1
Set con = server.CreateObject("ADODB.Connection"
con.Open "test_user_conn_to_pdar_db","test_user","password"
strSQL = "SELECT * FROM TEST_USER.RACE_STATS;"
Set rst = server.CreateObject("ADODB.Recordset"
rst.Open strSQL, con, adOpenStatic, _
adLockReadOnly, adCmdText
rst.MoveFirst
%>
<TABLE BORDER>
<TR>
<TD><B>RACE_NAME</B></TD>
<TD><B>STR_DICE</B></TD>
<TD><B>STR_SIDES</B></TD>
</TR>
<%
do while not rst.EOF
%>
<TR>
<TD><%= rst("RACE_NAME"
<TD><%= rst("STR_DICE"
<TD><%= rst("STR_SIDES"
</TR>
<%
rst.MoveNext
loop
%>
<%
' Clean-up time
rst.Close
con.Close
%>
</TABLE>
</BODY>
</HTML>
**** end code ****
If I drop the html stuff and use "New ADOBC.Connection" and "New ADODB.Recordset" I can get data back in VB6. Can anyone see what I'm missing here?