Warning: file_put_contents(): Only -1 of 58 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
mssql_fetch_assoc mssql_fetch_field MS SQL Server PHP Manual mssql_fetch_batch (PHP 4 >= 4.0.4, 5, PECL odbtp:1.1.1-1.1.4) — Returns the next batch of records Description int ( resource $resul...
Forum und email

mssql_fetch_batch

(PHP 4 >= 4.0.4, PHP 5, PECL odbtp:1.1.1-1.1.4)

mssql_fetch_batch — Returns the next batch of records

Description

int mssql_fetch_batch ( resource $result )

Returns the next batch of records

Parameters

result

The result resource that is being evaluated. This result comes from a call to mssql_query().

Return Values

Returns the batch number as an integer.

Examples

Example#1 mssql_fetch_batch() Example

<?php
$resDb 
mssql_connect('localhost''user''name');
$result mssql_query('SELECT * FROM MYTABLE'$resDb10000);

$intNumRows mssql_num_rows($result);

while (
$intNumRows 0) {
    while (
$arrRow mssql_fetch_assoc($result)) {
        
// Do stuff ...
    
}
    
$intNumRows mssql_fetch_batch($result);
}
?>