Two questions..somewhat related...
Classic ADO had rs.recordCount. Is there a similar function in ADO.NET?
additionally,
I want to give site statistics. What to display total Work Requests on file, and then count the number of each work request type to show how many of the total work requests are in each category.
Using the datareader to retrieve the data, is there an efficient way to tell how many of each "problem type" there is...or is the only way to create an array and add a value of 1 to the total each time another of that problem type is encountered?
Problem type 1 (PC problems)
Problem type 2 (Network problems)
Problem type 3 (Phone problems)
etc. (this is a dynamic list and can change in the amount of problem types there are.
Make sense? Anyone know if there's a better way? the latter seams like it would slow everything down, along with be in-efficient. -Ovatvvon :-Q
Classic ADO had rs.recordCount. Is there a similar function in ADO.NET?
additionally,
I want to give site statistics. What to display total Work Requests on file, and then count the number of each work request type to show how many of the total work requests are in each category.
Using the datareader to retrieve the data, is there an efficient way to tell how many of each "problem type" there is...or is the only way to create an array and add a value of 1 to the total each time another of that problem type is encountered?
Problem type 1 (PC problems)
Problem type 2 (Network problems)
Problem type 3 (Phone problems)
etc. (this is a dynamic list and can change in the amount of problem types there are.
Make sense? Anyone know if there's a better way? the latter seams like it would slow everything down, along with be in-efficient. -Ovatvvon :-Q