Fill Dataset

S

shapper

Hello,

I know this is a basic question but I am having a problem.

I am using System.Data.Common and I created a command.

1 ...
2 Dim command As DbCommand = dbProvider.CreateCommand()
3 ...

I need to fill a dataset but I am having problems.

Could somebody help me out?

Thanks,

Miguel
 
M

Mohsin Rizvi

Hello shapper,

If you are simply asking about which statement will help you filling
your dataset then try

DataAdapter.Fill(yourDataSet);

Since DataAdapter acts as a bridge between datasource and dataset so it
will fill your dataset with the result returned from datasource.

Feel free to ask if you are not satisfied.
Hope this helps!

Regards,
Mohsin Rizvi
 

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

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top