OleDbCommand / ADO.Net Recordset

  • Thread starter Thread starter Sarah
  • Start date Start date
S

Sarah

I've used the OldDbCommand to retrieve some data (SELECT query) -- I have
two questions.

1. How do I find out how many records where retrieved WITHOUT looping
through the results and incrementing a counter? Is there a direct way of
some sort?

2. How do I initialize an array and add all my Primary Keys ("ProductID") to
an array while looping through the results?

Thanks.
 
Back
Top