473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Better method to input data from one Table into dataset ?

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
Nov 21 '05 #1
3 1193
Agnes,

See this messages to you in this newsgroup

http://tinyurl.com/6bpam

Cor

"Agnes" <ag***@dynamictech.com.hk>
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

Nov 21 '05 #2
Cor, You want me to review my old post ? Why ? What do you mean ?
"Cor Ligthert" <no************@planet.nl> ¦b¶l¥ó
news:Om**************@TK2MSFTNGP15.phx.gbl ¤¤¼¶¼g...
Agnes,

See this messages to you in this newsgroup

http://tinyurl.com/6bpam

Cor

"Agnes" <ag***@dynamictech.com.hk>
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


Nov 21 '05 #3
Because that is about the dataadapter, what is normally the most simple way
to load a datatable.

Cor

"Agnes" <ag***@dynamictech.com.hk>
...
Cor, You want me to review my old post ? Why ? What do you mean ?
"Cor Ligthert" <no************@planet.nl> ¦b¶l¥ó
news:Om**************@TK2MSFTNGP15.phx.gbl ¤¤¼¶¼g...
Agnes,

See this messages to you in this newsgroup

http://tinyurl.com/6bpam

Cor

"Agnes" <ag***@dynamictech.com.hk>
> 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
>
>



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kaveri | last post by:
Currently we use a data adapter and a dataset for fetching data from multiple data source. Once we populate the data from each data source we merge all datasets into a single dataset. Hence if...
14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
0
by: Eric Paul | last post by:
I have been in search of a better way to handle bulk inserts and updates into SQL 2000 using c# and while I have found a few different ways to accomplish this I was wondering what is considered to...
0
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops...
4
by: James | last post by:
Basically I have a DataGrid that I'm binding to the results of a stored procedure call. The recordset is fairly small. Initially I'm creating a DataSet from the results and binding it. There's a...
39
by: windandwaves | last post by:
Hi Folk I have to store up to eight boolean bits of information about an item in my database. e.g. with restaurant drive-through facility yellow windows
4
by: kah | last post by:
Hi Guys, In my ASP.net application, i am display information using a dataset. e.g for each datarow in dataset.table(0).rows label.text=datarow.item("ColumnName").tostring next This works...
5
by: Eric Fortin | last post by:
I have a disconnected handheld device that I want to send the results of the day to a database through a web service (on an intranet) What's the best method to do this? XML? Tab...
3
by: leviwatts | last post by:
Exception Details: System.ArgumentException: DataTable already belongs to another DataSet. Googling for this error shows several post of people trying to manipulate a table within a dataset. Others...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.