Creating datatable

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I create a datatable from a table in an access database? Do I need
to drag the access table on a dataset first? A code example would be great.

Thanks

Regards
 
Hi John,

John said:
Hi

How can I create a datatable from a table in an access database? Do I need
to drag the access table on a dataset first?

Yes, that is certainly one way.

A code example would be great.

You might leave that to DataAdapter.Fill method - it will create a datatable
for you.
However, I tend to prefer the first approach beacuse it is faster and gives
you intellisense support.
 

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