Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Easy question about DataTable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TonyJ - 25 Oct 2007 12:47 GMT
Hello!

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

//Tony
Anthony Jones - 25 Oct 2007 13:42 GMT
> Hello!
>
> Can one DataTable be considered in the same way as a table in the database.

Define 'considered'?

Signature

Anthony Jones - MVP ASP/ASP.NET

TonyJ - 25 Oct 2007 14:20 GMT
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

> > Hello!
> >
> > Can one DataTable be considered in the same way as a table in the
> database.
>
> Define 'considered'?
Ignacio Machin ( .NET/ C# MVP ) - 25 Oct 2007 15:48 GMT
Hi,

Signature

Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.

> Hello!
>
[quoted text clipped - 9 lines]
>
> 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 [C# MVP] - 25 Oct 2007 14:25 GMT
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.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hello!
>
> Can one DataTable be considered in the same way as a table in the database.
>
> //Tony
Mr. Arnold - 25 Oct 2007 20:20 GMT
>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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.