(PHP 4 >= 4.0.4, PHP 5, PECL odbtp:1.1.1-1.1.4)
mssql_fetch_batch — Returns the next batch of records
Returns the next batch of records
The result resource that is being evaluated. This result comes from a call to mssql_query().
Returns the batch number as an integer.
Example #1 mssql_fetch_batch() Example
<?php$resDb = mssql_connect('localhost', 'user', 'name');$result = mssql_query('SELECT * FROM MYTABLE', $resDb, 10000);$intNumRows = mssql_num_rows($result);while ($intNumRows > 0) { while ($arrRow = mssql_fetch_assoc($result)) { // Do stuff ... } $intNumRows = mssql_fetch_batch($result);}?>