Better method to input data from one Table into dataset ?

A

Agnes

Now, i need to query some data from InvoiceTable and then put into one
dataset.
my way is using store procedure ,
1.by passing date,company code to the store procedure)
2. use datarow to loop the execute reader ,
3 . for each datarow, i need to put a new voucherno
(myRow.item("voucherno") = no
4. myNewTable.import(myRow)

I am wonder is there any better way to do that ?
Thanks a lot
 
C

Cor Ligthert

Because that is about the dataadapter, what is normally the most simple way
to load a datatable.

Cor
 

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

Top