Connecting Tech Pros Worldwide Forums | Help | Site Map

How to update datatable in memory without dataadapter?

=?Utf-8?B?UGV0ZXI=?=
Guest
 
Posts: n/a
#1: Oct 1 '07
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
Guest
 
Posts: n/a
#2: Oct 1 '07

re: How to update datatable in memory without dataadapter?


=?Utf-8?B?UGV0ZXI=?= <Peter@discussions.microsoft.comwrote in
news:A2D37C2A-0445-4EAA-B612-3702D9ABED99@microsoft.com:
Quote:
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?
=?Utf-8?B?UGV0ZXI=?=
Guest
 
Posts: n/a
#3: Oct 1 '07

re: How to update datatable in memory without dataadapter?


No. The datatable is the one returned by
DbDataSourceEnumerator.GetDataSource. So, I just want to update the
datatable in memory.

"Spam Catcher" wrote:
Quote:
=?Utf-8?B?UGV0ZXI=?= <Peter@discussions.microsoft.comwrote in
news:A2D37C2A-0445-4EAA-B612-3702D9ABED99@microsoft.com:
>
Quote:
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
Guest
 
Posts: n/a
#4: Oct 1 '07

re: How to update datatable in memory without dataadapter?


=?Utf-8?B?UGV0ZXI=?= <Peter@discussions.microsoft.comwrote in
news:1A38518A-0EDE-4D3F-931F-062F0921F97C@microsoft.com:
Quote:
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.
=?Utf-8?B?UGV0ZXI=?=
Guest
 
Posts: n/a
#5: Oct 1 '07

re: How to update datatable in memory without dataadapter?


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.

"Spam Catcher" wrote:
Quote:
=?Utf-8?B?UGV0ZXI=?= <Peter@discussions.microsoft.comwrote in
news:1A38518A-0EDE-4D3F-931F-062F0921F97C@microsoft.com:
>
Quote:
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.
>
Closed Thread