I am (kind of) new to VB.NET
I know I can request information from data base and keep it in a table in a dataset.
I also know I can use a data reader if I need to have read-only forward-only access to some data.
What can I (should I) use if I only want to request one field/one record from my data base?
Let say I just want to get the Count of how many records are in the data base according to some criteria:
[tt]
Select Count(*) As How_Many
From SomeTable
Where …
[/tt]
I know I can use a table in a data set (that would be an over kill, I would guess), or even a data reader (which would work just fine). But I think I saw somewhere there is another way to get this little piece of information in VB.NET.
I don’t even know what to Google, that’s why I ask here.
Have fun.
---- Andy
I know I can request information from data base and keep it in a table in a dataset.
I also know I can use a data reader if I need to have read-only forward-only access to some data.
What can I (should I) use if I only want to request one field/one record from my data base?
Let say I just want to get the Count of how many records are in the data base according to some criteria:
[tt]
Select Count(*) As How_Many
From SomeTable
Where …
[/tt]
I know I can use a table in a data set (that would be an over kill, I would guess), or even a data reader (which would work just fine). But I think I saw somewhere there is another way to get this little piece of information in VB.NET.
I don’t even know what to Google, that’s why I ask here.
Have fun.
---- Andy