Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking EOF and BOF

Status
Not open for further replies.

vasanthgnb

Programmer
Dec 13, 2000
14
0
0
IN
Is there any ODBC API to check the EOF and BOF conditions without scrolling the cursor.
 
Here's a Vbscript / asp example:

<%

dim rcset
set rcset = Server.CreateObject(&quot;ADODB.recordset&quot;)
rcset.open &quot;select * from employee&quot;, &quot;DSN=employee&quot;

do while not rcset.eof
response.write &quot;<br>&quot;
response.write rcset(&quot;ID&quot;) &amp; &quot; &quot;
response.write rcset(&quot;last&quot;) &amp; &quot; &quot;
response.write rcset(&quot;first&quot;) &amp; &quot; &quot;
response.write rcset(&quot;dept&quot;)
rcset.movenext
loop


%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top