A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

changing data type: Insufficient memory



 
 
Thread Tools Display Modes
  #1  
Old January 21st, 2005, 03:21 PM
Gillfish
external usenet poster
 
Posts: n/a
Default changing data type: Insufficient memory

I have a large table (32 fields, 500 000 records). I am trying to "clean-up"
the data and want to change one field from text to number. I keep getting an
"insufficient memory or disk space" error. I have a 40GB hard drive with
27GB free, and compacted the database first, but still cannot get it to
change the data type. Any ideas?
--
G.
  #2  
Old January 21st, 2005, 03:43 PM
Sprinks
external usenet poster
 
Posts: n/a
Default

Hi, Gillfish.

Have you tried doing it in pieces, based on a range of Val([YourTextField])?

Sprinks

"Gillfish" wrote:

I have a large table (32 fields, 500 000 records). I am trying to "clean-up"
the data and want to change one field from text to number. I keep getting an
"insufficient memory or disk space" error. I have a 40GB hard drive with
27GB free, and compacted the database first, but still cannot get it to
change the data type. Any ideas?
--
G.

  #3  
Old January 21st, 2005, 03:48 PM
Douglas J. Steele
external usenet poster
 
Posts: n/a
Default

How much space you have isn't necessarily the issue. How big is the MDB
file? It cannot be larger than 2 GB (1 GB if you're using Access 97 or
earlier).

Can you create a new database with the table in the correct format, link to
your existing database and run an INSERT INTO query to get the data into the
new table?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Gillfish" wrote in message
...
I have a large table (32 fields, 500 000 records). I am trying to
"clean-up"
the data and want to change one field from text to number. I keep getting
an
"insufficient memory or disk space" error. I have a 40GB hard drive with
27GB free, and compacted the database first, but still cannot get it to
change the data type. Any ideas?
--
G.



  #4  
Old January 21st, 2005, 05:41 PM
Gillfish
external usenet poster
 
Posts: n/a
Default

Thanks, that did work. I'll have to do that for a few more fields now, but
the path is now clear!
I'm curious...why should the mdb file not be larger than 2GB? (this one was
only 258mb)

"Douglas J. Steele" wrote:

How much space you have isn't necessarily the issue. How big is the MDB
file? It cannot be larger than 2 GB (1 GB if you're using Access 97 or
earlier).

Can you create a new database with the table in the correct format, link to
your existing database and run an INSERT INTO query to get the data into the
new table?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Gillfish" wrote in message
...
I have a large table (32 fields, 500 000 records). I am trying to
"clean-up"
the data and want to change one field from text to number. I keep getting
an
"insufficient memory or disk space" error. I have a 40GB hard drive with
27GB free, and compacted the database first, but still cannot get it to
change the data type. Any ideas?
--
G.




  #5  
Old January 21st, 2005, 06:18 PM
John Vinson
external usenet poster
 
Posts: n/a
Default

On Fri, 21 Jan 2005 07:21:02 -0800, "Gillfish"
wrote:

I have a large table (32 fields, 500 000 records). I am trying to "clean-up"
the data and want to change one field from text to number. I keep getting an
"insufficient memory or disk space" error. I have a 40GB hard drive with
27GB free, and compacted the database first, but still cannot get it to
change the data type. Any ideas?


The problem is that if you try to change the datatype "in place" in
the table, Access must a) copy the entire table into memory, b) create
a new field in the table, c) write the entire table back, d) delete
the old field. It's very demanding!

I'd suggest creating a new empty table with the desired field type,
and then run an Append query to populate it. This makes far less
demand on memory since it's converting one record at a time rather
than the entire table at once.

John W. Vinson[MVP]
  #6  
Old January 21st, 2005, 06:41 PM
Douglas J. Steele
external usenet poster
 
Posts: n/a
Default

2 GB is the absolute largest that an MDB can be. As John explained in his
response to you, Access actually makes a new copy of your entire table (not
just the new column, I believe), so it's going to significantly increase the
size of the database.

I'm surprised, though, that 258 MB was too big.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Gillfish" wrote in message
...
Thanks, that did work. I'll have to do that for a few more fields now, but
the path is now clear!
I'm curious...why should the mdb file not be larger than 2GB? (this one
was
only 258mb)

"Douglas J. Steele" wrote:

How much space you have isn't necessarily the issue. How big is the MDB
file? It cannot be larger than 2 GB (1 GB if you're using Access 97 or
earlier).

Can you create a new database with the table in the correct format, link
to
your existing database and run an INSERT INTO query to get the data into
the
new table?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Gillfish" wrote in message
...
I have a large table (32 fields, 500 000 records). I am trying to
"clean-up"
the data and want to change one field from text to number. I keep
getting
an
"insufficient memory or disk space" error. I have a 40GB hard drive
with
27GB free, and compacted the database first, but still cannot get it to
change the data type. Any ideas?
--
G.






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rapid input Via datasheet RudyR_Seattle General Discussion 4 January 31st, 2005 01:33 AM
changing proportion of chart and data table Dawn Parks Charts and Charting 3 January 6th, 2005 01:18 AM
Prevent excel from changing numeric data ranges into dates? Tay F General Discussion 1 November 6th, 2004 03:20 AM
VBA Code problem error 9 Speedy General Discussion 19 October 15th, 2004 09:05 PM
Importing Excel spreadsheet into Access - data type problem Andrew Good General Discussion 2 August 27th, 2004 09:39 AM


All times are GMT +1. The time now is 10:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.