|
JohnH -> SQL Query using ADO connection (4/23/2008 10:53:46)
|
This is probably a really easy one (I am hoping!) Can someone tell me why my SQL query is only returning the first record? I have 85 rows of data in the table.
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "PROVIDER=SQLOLEDB;DATA SOURCE=xxx;UID=xxx;PWD=xxx;DATABASE=xxx"
Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "select * from trans"
rs.open SQL, conn
response.write rs("REQ_ID")
rs.close
conn.close
Set rs = Nothing
Set conn = Nothing
%>
Thanks John
|
|
|
|