Quickest,effective way of fetching data

  • Thread starter Thread starter drewdr
  • Start date Start date
D

drewdr

Let's say I need to get one single value to work with- the balance
column of a certain userid.

Do I have to fill a dataset from a select query, and then find the
appropriate cell in the dataset ?

Or is there some quicker/better way ?
 
Take a look at IDbCommand.ExecuteScalar method - it returns a single value
from in one call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top