473,385 Members | 1,542 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,385 software developers and data experts.

Read raw data from db a nd parse them?

Hi,
i need to read data from an Access Database.
My problem is that all data have to be parsed or calculated so i'm looking
for the fastest way.

How to do that? Do i need a dataset or two ,first with raw data and the
second with calculated data?But in this case how to pass raw data from a
dataset to final data in second one?
Or use other components?
Anyone could point me the way to solve it?
Thanks

Nov 16 '05 #1
8 1861
Feel,

What kind of calculations are you performing? If they are simple, then
you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do
something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you initially
fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"feel" <fe**@europeonline.com> wrote in message
news:aA**********************@news3.tin.it...
Hi,
i need to read data from an Access Database.
My problem is that all data have to be parsed or calculated so i'm looking
for the fastest way.

How to do that? Do i need a dataset or two ,first with raw data and the
second with calculated data?But in this case how to pass raw data from a
dataset to final data in second one?
Or use other components?
Anyone could point me the way to solve it?
Thanks

Nov 16 '05 #2
Feel,

What kind of calculations are you performing? If they are simple, then
you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do
something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you initially
fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"feel" <fe**@europeonline.com> wrote in message
news:aA**********************@news3.tin.it...
Hi,
i need to read data from an Access Database.
My problem is that all data have to be parsed or calculated so i'm looking
for the fastest way.

How to do that? Do i need a dataset or two ,first with raw data and the
second with calculated data?But in this case how to pass raw data from a
dataset to final data in second one?
Or use other components?
Anyone could point me the way to solve it?
Thanks

Nov 16 '05 #3

What kind of calculations are you performing? If they are simple, then you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you initially
fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com


I have 6 fields and more or less 400 records.
I have to parse each s field extract some strings and in other extract some
numerical data that come in hex format.
What i need to have clear is if i have to fill the dataset with original
data from database and analyze them before showing ( listview or datagrid)
or if it's better to fill another dataset with already manipulated data and
show this second dataset or what?
Thanks again.
Nov 16 '05 #4

What kind of calculations are you performing? If they are simple, then you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you initially
fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com


I have 6 fields and more or less 400 records.
I have to parse each s field extract some strings and in other extract some
numerical data that come in hex format.
What i need to have clear is if i have to fill the dataset with original
data from database and analyze them before showing ( listview or datagrid)
or if it's better to fill another dataset with already manipulated data and
show this second dataset or what?
Thanks again.
Nov 16 '05 #5
feel,

In this case, I would add a column (or more, depending on how many
values you have to calculate) to the original data set that is returned.
Then, I would cycle through the rows, and calculate the values, populating
the new column.

Check the Expression property on the DataColumn class. It is possible
that you could create a calculated column, and save yourself some code.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"feel" <fe**@europeonline.com> wrote in message
news:lJ**********************@news3.tin.it...

What kind of calculations are you performing? If they are simple, then
you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do
something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you
initially fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com


I have 6 fields and more or less 400 records.
I have to parse each s field extract some strings and in other extract

some numerical data that come in hex format.
What i need to have clear is if i have to fill the dataset with original
data from database and analyze them before showing ( listview or datagrid)
or if it's better to fill another dataset with already manipulated data and show this second dataset or what?
Thanks again.

Nov 16 '05 #6
feel,

In this case, I would add a column (or more, depending on how many
values you have to calculate) to the original data set that is returned.
Then, I would cycle through the rows, and calculate the values, populating
the new column.

Check the Expression property on the DataColumn class. It is possible
that you could create a calculated column, and save yourself some code.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"feel" <fe**@europeonline.com> wrote in message
news:lJ**********************@news3.tin.it...

What kind of calculations are you performing? If they are simple, then
you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do
something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you
initially fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com


I have 6 fields and more or less 400 records.
I have to parse each s field extract some strings and in other extract

some numerical data that come in hex format.
What i need to have clear is if i have to fill the dataset with original
data from database and analyze them before showing ( listview or datagrid)
or if it's better to fill another dataset with already manipulated data and show this second dataset or what?
Thanks again.

Nov 16 '05 #7

In this case, I would add a column (or more, depending on how many
values you have to calculate) to the original data set that is returned.
Then, I would cycle through the rows, and calculate the values, populating
the new column.

Check the Expression property on the DataColumn class. It is possible
that you could create a calculated column, and save yourself some code.
--


Thanks for your prompt reply..
so in my case i have to add 6 columns ,each filled with parsed data, and
when finished looping and filling them with re-calculated data show their
value on screen.

Ok, will work on this.Thanks.


Nov 16 '05 #8
Hi,

Depending of the operations to perform you may do them when you build the
query to access the DB, I think this would be the fastest way, if you can do
it. take a look at the string manipulation functions access provides.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"feel" <fe**@europeonline.com> wrote in message
news:lJ**********************@news3.tin.it...

What kind of calculations are you performing? If they are simple, then
you might be able to get away with setting the Expression property on a
column you add to the data set. However, it seems like you might want to do
something a little more complex. In that case, you might have to cycle
through all the rows and calculate the values you need when you
initially fetch the data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com


I have 6 fields and more or less 400 records.
I have to parse each s field extract some strings and in other extract

some numerical data that come in hex format.
What i need to have clear is if i have to fill the dataset with original
data from database and analyze them before showing ( listview or datagrid)
or if it's better to fill another dataset with already manipulated data and show this second dataset or what?
Thanks again.

Nov 16 '05 #9

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

Similar topics

2
by: Anthony Liu | last post by:
I have a news corpus that looks like the following. I want to do a statistical survey of the words used in the news report per se. So, I must not consider those words in the XML tags. I know...
5
by: Rafal 'Raf256' Maj | last post by:
Hi, I need to parse a file. This means reading from it as from std::istream. But - sometimes I also need to put-back some text I read before. What type of string can I use for that? Something...
4
by: pisscot | last post by:
Lind Apr 13, 6:32 am show options Newsgroups: comp.lang.c From: piss...@gmail.com (Lind) - Find messages by this author Date: 13 Apr 2005 06:32:15 -0700 Local: Wed,Apr 13 2005 6:32 am...
3
by: Sobhan | last post by:
Hi all, I am writing a program in C in which I need to read a data file and export to the excel.The Data in the file in CSV format. Values in the .txt file are as follows: "a","b","c" 10,20,30...
2
by: kaede | last post by:
Hi all, Given the following textfile (i.e test.txt) 5 5 5 2 E aeiou 4 3 Y abcdefghij
8
by: kepioo | last post by:
I currently have an xml input file containing lots of data. My objectiv is to write a script that reports in another xml file only the data I am interested in. Doing this is really easy using SAX....
3
by: computerwolf8 | last post by:
I have a file where I know the lines go as follows: string long string int int string double
2
by: RyanS09 | last post by:
Hi- I have read many posts with specific applications of reading in text files into arrays, however I have not been able to successfully modify any for my application. I want to take a text file...
3
by: sam | last post by:
same as subject?
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.