What is equivalent C sharp logic using Visual Basic 6.0 Max number of records property. I am working with a disconnected datatable.
Transfering logic to C sharp.
Visual Basic:
recordset.MaxRecords
C sharp:
using datatable
????????
Visual Basic 6.0 Max Record Property to C sharp
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 27, 2014, 11:27 AM EDT
However, there are overloads of the DbDataAdapter.Fill() method which can restrict the number of records inserted into the DataSet or DataTable in the first place.
You could also do this in the SQL query itself using the TOP keyword.