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 / VB.NET / October 2007

Tip: Looking for answers? Try searching our database.

How to update datatable in memory without dataadapter?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 01 Oct 2007 19:10 GMT
A datatable is returned from a .NET method.   Since there is no dataadapter
in this case, how can I update a column for all the rows in that datatable?
Spam Catcher - 01 Oct 2007 19:51 GMT
> A datatable is returned from a .NET method.   Since there is no
> dataadapter in this case, how can I update a column for all the rows
> in that datatable?

Do you have access to the database?
Peter - 01 Oct 2007 20:36 GMT
No.  The datatable is the one returned by
DbDataSourceEnumerator.GetDataSource.  So, I just want to update the
datatable in memory.

> > A datatable is returned from a .NET method.   Since there is no
> > dataadapter in this case, how can I update a column for all the rows
> > in that datatable?
>
> Do you have access to the database?
Spam Catcher - 01 Oct 2007 21:13 GMT
> No.  The datatable is the one returned by
> DbDataSourceEnumerator.GetDataSource.  So, I just want to update the
> datatable in memory.

If you do not have access to the data - you cannot send updates back to the
DB.

A datatable is a disconnected representation of the database. It has no
access to the underlying data source.
Peter - 01 Oct 2007 21:54 GMT
Yes and I don't want to update any datasource in this case (actually don't
know the datasource).  I have resolved the issue by using for loop and assign
value to column.

> > No.  The datatable is the one returned by
> > DbDataSourceEnumerator.GetDataSource.  So, I just want to update the
[quoted text clipped - 5 lines]
> A datatable is a disconnected representation of the database. It has no
> access to the underlying data source.

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.