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.
 
Back
Top