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

300K rows of data ...conversion

hi I am using MS office Access 2003. ANybody knows how to
convert more than 300-400K rows from text into e.g. number ?
I tried to do so a few times and access told me there aint
enough memory or something. Anybody knows quick fix to that
problem ? thanks

Oct 8 '06 #1
10 2004
el********@o2.pl wrote:
hi I am using MS office Access 2003. ANybody knows how to
convert more than 300-400K rows from text into e.g. number ?
I tried to do so a few times and access told me there aint
enough memory or something. Anybody knows quick fix to that
problem ? thanks
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You'll have to create a new column in the table w/ the new numeric data
type. Then run an UPDATE query that copies/converts the text value into
the numeric column.

If you get the "not enough memory" error during the UPDATE, it may be
because you really don't have enough memory (RAM) in your computer, or
Access is just getting grumpy. During development Access starts to eat
a lot of memory; to avoid the error you could try closing Access & then
re-opening it & immediately run the UPDATE query.

If that doesn't work, try updating chunks of the data instead of the
whole table; use WHERE clauses like this:

(say your data covers 5 years, with about 20,000 rows per year)

WHERE date_column BETWEEN #1/1/2004# AND #12/31/2004#

then change the date range to the next year & re-run the UPDATE. Repeat
until you've covered all the date ranges in the table.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRSlRxYechKqOuFEgEQLLMwCgnyo3DPx8bJccLtQdWJBn5q uKJ+kAnRO3
+WiAU2Di5BKYlvJJkpYYd32Q
=pr95
-----END PGP SIGNATURE-----
Oct 8 '06 #2
On Sun, 08 Oct 2006 19:30:11 GMT, MGFoster <me@privacy.comwrote:

Indeed, or use something like "TOP 10000". Most Execute methods return
a count of records affected, so you could loop until that number is 0.

-Tom.
<clip>
>
If that doesn't work, try updating chunks of the data instead of the
whole table; use WHERE clauses like this:

(say your data covers 5 years, with about 20,000 rows per year)

WHERE date_column BETWEEN #1/1/2004# AND #12/31/2004#

then change the date range to the next year & re-run the UPDATE. Repeat
until you've covered all the date ranges in the table.
Oct 8 '06 #3
MLH
I'm not sure how these guys answered
your question. They must-a-read a lot more
into it than you wrote.

Forget the 300,000 to 400,000 records of
whatever it is you're talking about and give
is one clear example. What are you trying
to do. Just what is it you mean by
"convert ... from text into e.g. number"
What exactly is an "e.g. number", huh?

Are you trying to convert "four" to 4 or
"thirty-three" to 33? I don't know what
these guys are answering. And I sure
can't reverse-engineer your question out
of their answer.
Oct 8 '06 #4
MLH wrote:
Are you trying to convert "four" to 4 or
"thirty-three" to 33? I don't know what
these guys are answering. And I sure
can't reverse-engineer your question out
of their answer.
While your interpretation might also be vaid, Tom and MG are talking
about using an update query to convert data types. Their response
couldn't be any simpler.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Oct 9 '06 #5
MLH
You are right. Responses are simple.
I cannot infer the question from either
response. That's all I was tellin' the guy.
Oct 9 '06 #6
to clarify:
I usually export huge amount of data from our accounting system (300K
being small sample). While importing txt file into access I receive all
the 3 columns in text format. What I was thinking is that ...in order
to do any computation I need to convert revenue text format into number
format ... hence my question. What I just discovered is

1) MS access will perform 4 basic mathematical operation (*, /, -, +)
on text data (numbers) .. returning results in number format !!!

Basically what I need to do is to multiply any non number format text
by 1 and I will receive a column with number data (providing it is
really number )...which I do not really need considering #1 ;-) ...it
is all teamwork ... !!

Oct 9 '06 #7

el********@o2.pl wrote:
to clarify:
I usually export huge amount of data from our accounting system (300K
being small sample). While importing txt file into access I receive all
the 3 columns in text format. What I was thinking is that ...in order
to do any computation I need to convert revenue text format into number
format ... hence my question. What I just discovered is

1) MS access will perform 4 basic mathematical operation (*, /, -, +)
on text data (numbers) .. returning results in number format !!!

Basically what I need to do is to multiply any non number format text
by 1 and I will receive a column with number data (providing it is
really number )...which I do not really need considering #1 ;-) ...it
is all teamwork ... !!
You mean that if you create an import specification and run the import,
Access _still_ treats your numeric data as text? I would start with
creating an import spec and then testing on a small sample so you don't
run out of memory. Once you have that sorted, I would try importing an
entire file.

Oct 9 '06 #8
MLH
On 9 Oct 2006 12:04:54 -0700, "el********@o2.pl" <el********@o2.pl>
wrote:
>to clarify:
I usually export huge amount of data from our accounting system (300K
being small sample). While importing txt file into access I receive all
the 3 columns in text format. What I was thinking is that ...in order
to do any computation I need to convert revenue text format into number
format ... hence my question. What I just discovered is

1) MS access will perform 4 basic mathematical operation (*, /, -, +)
on text data (numbers) .. returning results in number format !!!

Basically what I need to do is to multiply any non number format text
by 1 and I will receive a column with number data (providing it is
really number )...which I do not really need considering #1 ;-) ...it
is all teamwork ... !!
I think I understand you a bit better. From what you said, I would
imagine a single record you have something like this after importing
to MS Access. Let's call your table tblTransactions.

[TextField1] [TextField2] [TextField3]
"Line Item A" "33" "Other text"
"Line Item B" "104" "Blah Blah"
"Line Item C" "250" "Blah Blah"
....

If this is true, you could reference table fields containing
text-string representations of numbers as if they were numbers
using CInt, CLng, CCur - to name a few. For example,

SELECT CCur([TextField2])+12 AS CalcField,
tblTransactions.TextField1FROM tblTransactions;

would allow you to list your first 2 table fields, adding 12 to the
value expressed in the 2nd field and displaying it as currency.
I'm of the opinion that, although multiplying the number 1 times
the string "33" may produce the numerical result you seek, it
only does so as the result of MS Access coercing the string
value to 33 to a numeric value because it 'assumes' that's what
you want to do. Its probably not always in your best interest to
let someone on the Access Development Team make your
decisions for you like that. I say this in spite of the fact that
what you tried worked.
Oct 10 '06 #9
The usual reason for this error (in my experience) is not lack of ram, as
Access will page out, it's lack of temp disc space or (on one famous
occasion) lack of physical disc space.

--

Terry Kreft
"MGFoster" <me@privacy.comwrote in message
news:7l*****************@newsread1.news.pas.earthl ink.net...
el********@o2.pl wrote:
hi I am using MS office Access 2003. ANybody knows how to
convert more than 300-400K rows from text into e.g. number ?
I tried to do so a few times and access told me there aint
enough memory or something. Anybody knows quick fix to that
problem ? thanks

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You'll have to create a new column in the table w/ the new numeric data
type. Then run an UPDATE query that copies/converts the text value into
the numeric column.

If you get the "not enough memory" error during the UPDATE, it may be
because you really don't have enough memory (RAM) in your computer, or
Access is just getting grumpy. During development Access starts to eat
a lot of memory; to avoid the error you could try closing Access & then
re-opening it & immediately run the UPDATE query.

If that doesn't work, try updating chunks of the data instead of the
whole table; use WHERE clauses like this:

(say your data covers 5 years, with about 20,000 rows per year)

WHERE date_column BETWEEN #1/1/2004# AND #12/31/2004#

then change the date range to the next year & re-run the UPDATE. Repeat
until you've covered all the date ranges in the table.
--
MGFoster:::mgf00 <atearthlink <decimal-pointnet
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRSlRxYechKqOuFEgEQLLMwCgnyo3DPx8bJccLtQdWJBn5q uKJ+kAnRO3
+WiAU2Di5BKYlvJJkpYYd32Q
=pr95
-----END PGP SIGNATURE-----

Oct 10 '06 #10
I don't believe MLH is saying the answers are unclear, the question is.
He's asking for clarification from the OP not criticising Tom and MGF.

--

Terry Kreft
"Tim Marshall" <TI****@PurplePandaChasers.Moertheriumwrote in message
news:eg**********@coranto.ucs.mun.ca...
MLH wrote:
Are you trying to convert "four" to 4 or
"thirty-three" to 33? I don't know what
these guys are answering. And I sure
can't reverse-engineer your question out
of their answer.

While your interpretation might also be vaid, Tom and MG are talking
about using an update query to convert data types. Their response
couldn't be any simpler.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me

Oct 10 '06 #11

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

Similar topics

3
by: Paolo Alexis Falcone | last post by:
Whenever I try to access a table with many rows using PgSQL's fetchall(), this happens: >>> from pyPgSQL import PgSQL >>> db = PgSQL.connect("192.168.0.8:5432:whitegold","dondon","dondon") >>>...
0
by: Tomas Ekroth | last post by:
Hi! Maybe this is a very stupid question. I'll try anayway. I'm using MySQL 3.23.52 on RedHat 8.0. I have a very big table (several millions of rows). Each entry actually constitute a word in...
6
by: Fan Ruo Xin | last post by:
I try to copy a table from production system (DB2 UDB EEE V7.2 + fixpak5) to the testing system (DB2 UDB V8.1 + fixpak4a). I moved the data from productions system by using the following steps:...
14
by: Jacko | last post by:
Hi guys, Say I made a SELECT statement to my sql DB that would return 50 rows that I will use a sqldatareader to access. Instead of iterating through each and every row of the datareader, I'd...
10
by: Eric E | last post by:
Hi all, I am using an Access client linked to a PG 7.4 server via ODBC. I have a stored proc on the server that inserts rows into a table.particular table, accomplished via an INSERT within the...
68
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
7
by: rcamarda | last post by:
I wish to build a table based on values from another table. I need to populate a table between two dates from another table. Using the START_DT and END_DT, create records between those dates. I...
0
by: dataentryoffshore | last post by:
Get a Discount up to 60% on data entry, data capture, dataentry services, large volume data processing and data conversion services through offshore facilities in India. Offshore data entry also...
1
ssnaik84
by: ssnaik84 | last post by:
Hi Guys, Last year I got a chance to work with R&D team, which was working on DB scripts conversion.. Though there is migration tool available, it converts only tables and constraints.. Rest of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.