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
????????
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 27, 2014, 3:27 PM
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.