Easy question about DataTable

  • Thread starter Thread starter TonyJ
  • Start date Start date
T

TonyJ

Hello!

Can one DataTable be considered in the same way as a table in the database.

//Tony
 
Hello!

I mean interpret.

A database table has columns rows and maybe constraints.
A DataTable has some columns and probably some rows. It might also have some
constraints.

In this sense they are quite similar containing more or less the same kind
of objects(column,rows..)

I'm I right?

//Tony
 
Hi,


--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
TonyJ said:
Hello!

I mean interpret.

A database table has columns rows and maybe constraints.
A DataTable has some columns and probably some rows. It might also have
some
constraints.

In this sense they are quite similar containing more or less the same kind
of objects(column,rows..)

I'm I right?

You are right. As a matter of fact that is the idea in teh first place.
Now note that it's "similar" but not exactly the same.
 
Peter Bromberg said:
A DataTable, if the SQL used to populate it returns all rows and columns,
can
be "considered" an in-memory representation of the database table it's
rows
came from. But, I'm not sure what this accomplishes for you.

You can bind a DataTable to a control that was derived from a
dataset/contains a dataset .You can't bind a SQL Table to a control.
 

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