Ado. Net implements a simple non-connection paging method (one of dataadapter. Fill overload ).

Source: Internet
Author: User
PublicIntFill (
Dataset Dataset,
Int Startrecord,
Int Maxrecords,
String Srctable
);

 

 
 
 

 

Parameters

Dataset
Dataset to be filled with records and architectures (if necessary.
Startrecord
The number of records starting from scratch.
Maxrecords
The maximum number of records to be retrieved.
Srctable
The name of the source table used for table ing.
Return Value

Number of rows that have been successfully added or refreshed in dataset. This does not include rows affected by statements that do not return rows.

Dataadapter obtains the result set of its selectcommand fromStartrecordWhen the actual data is smaller than maxrecords, no error is thrown.

Note: This type of paging refers to the paging After retrieving all the data. It will not improve the efficiency. To improve the efficiency, it should also be solved from the data perspective.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.