update DataTable from other Datatable ???

  • Thread starter Thread starter gemalas
  • Start date Start date
G

gemalas

how can i get update DataTable from other Datatable for example:


SqlDataAdapterA.Fill(DataSet11.temp_a)
SqlDataAdapterB.Fill(DataSet11.temp_b)

SqlDataAdapterB.Update(DataSet11.temp_a)
 
Hi,

What's wrong with the code below (as long as tables have similar structure)?
Or am I missing the point?
 
this example do not generate any exception but do not updates



Miha Markic said:
Hi,

What's wrong with the code below (as long as tables have similar structure)?
Or am I missing the point?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
SLODUG - Slovene Developer Users Group www.codezone-si.info

gemalas said:
how can i get update DataTable from other Datatable for example:


SqlDataAdapterA.Fill(DataSet11.temp_a)
SqlDataAdapterB.Fill(DataSet11.temp_b)

SqlDataAdapterB.Update(DataSet11.temp_a)
 
What exactly is an update for you?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
SLODUG - Slovene Developer Users Group www.codezone-si.info

gemalas said:
this example do not generate any exception but do not updates



Miha Markic said:
Hi,

What's wrong with the code below (as long as tables have similar
structure)?
Or am I missing the point?

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
www.rthand.com
SLODUG - Slovene Developer Users Group www.codezone-si.info

gemalas said:
how can i get update DataTable from other Datatable for example:


SqlDataAdapterA.Fill(DataSet11.temp_a)
SqlDataAdapterB.Fill(DataSet11.temp_b)

SqlDataAdapterB.Update(DataSet11.temp_a)
 
Back
Top