vbscript - ADO Recordset eof is always true even though there is data -
below piece of code runs stored procedure , returns 1 row.
if run below piece of code eof returns true in cases, when know there data. works correctly not.
set objconn = server.createobject("adodb.connection") objconn.open funcreadintranetconnection set rs = objconn.execute(strsql) if not rs.eof else end if
i running code twice after each other, not sure if related, recreate connections etc each time.
any suggestions appreciated.
i suggest:
do while not rs.eof 'your code here loop
Comments
Post a Comment