joining two tables

A

AVL

Hi,
Ive two data tables..I need to perform a join on these datatables..
and fetch the data..I need to do it programaticlaly..
How can I acheive it...any sample code wpuld be of great help..
 
C

Christiano Donke

do you mean you wanna merge the tables??



dim ds, ds2 as new dataset

ds.readxml(xmlfile)

for i as integer=0 to 5
ds2.readxml(xmlfile & i)
ds.merge(ds2)
next

gridview.datasource=ds.tables(0).defaultview
gridview.databind



this worked for me when i had to do it with xml files...
to do with sql might be pretty close...


just remember, the tables must have the very same schema...


christiano.
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top