473,406 Members | 2,894 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,406 software developers and data experts.

overflow during ODBC export

OK, I've been watching my DB grow and have known for a long time I
would have to move the back end, but of course I waited until I
started getting odd behavior (at about 1.92GB). So today I installed
MySQL and (after a bit too much time getting the data source working)
started exporting tables. I successfully exported eight of my nine
tables, and can view them from a linked Access front end.

But when I tried to export the final table, which is probably about
90% of the space in the DB, it chugged away for an hour or so and
finally told me "not enough space on temporary disk". Well of course
this is nonsense (there's over 200GB free space), and the JETxxx.tmp
file is almost 2GB, so I gather the real problem is that JET isn't
sending directly to the ODBC interface but rather is constructing a
temporary file, and that even the temporary file has a 2GB limit.

And this just when life seemed like it might be easy.

What's the easiest way around this? I'm sure I could use various forms
of export to flat files, selecting a subset of the table, and import
these into MySQL. That just seems so clumsy compared with the ODBC
export, which although it requires several non-obvious clicks for each
table, once I learned what those clicks were, it seems to have just
worked, though I expect I'll have to learn a bit about MySQL to clean
stuff up.

I just noticed that I can export query via ODBC. Is that going to
create a table? If so, will that table get all the properties that an
export from a table gets? This could be the easiest (just set up a
query which selects part of the table, and run it for each section),
but my operational capability on MySQL is yet very limited and so I'm
concerned that I might find something very important missing after
I've put several hours of work into it.

This is in Access 2003 under XP, if it matters.

Thanks,

Edward
Aug 16 '08 #1
3 4529
On Aug 15, 10:43*pm, Edward Reid <edw...@paleo.orgwrote:
OK, I've been watching my DB grow and have known for a long time I
would have to move the back end, but of course I waited until I
started getting odd behavior (at about 1.92GB). So today I installed
MySQL and (after a bit too much time getting the data source working)
started exporting tables. I successfully exported eight of my nine
tables, and can view them from a linked Access front end.

But when I tried to export the final table, which is probably about
90% of the space in the DB, it chugged away for an hour or so and
finally told me "not enough space on temporary disk". Well of course
this is nonsense (there's over 200GB free space), and the JETxxx.tmp
file is almost 2GB, so I gather the real problem is that JET isn't
sending directly to the ODBC interface but rather is constructing a
temporary file, and that even the temporary file has a 2GB limit.

And this just when life seemed like it might be easy.

What's the easiest way around this? I'm sure I could use various forms
of export to flat files, selecting a subset of the table, and import
these into MySQL. That just seems so clumsy compared with the ODBC
export, which although it requires several non-obvious clicks for each
table, once I learned what those clicks were, it seems to have just
worked, though I expect I'll have to learn a bit about MySQL to clean
stuff up.

I just noticed that I can export query via ODBC. Is that going to
create a table? If so, will that table get all the properties that an
export from a table gets? This could be the easiest (just set up a
query which selects part of the table, and run it for each section),
but my operational capability on MySQL is yet very limited and so I'm
concerned that I might find something very important missing after
I've put several hours of work into it.

This is in Access 2003 under XP, if it matters.

Thanks,

Edward
Have you considered trying this using VBA (via DAO or ADO)? Might be
a bit slower, but might get past whatever problem you're having.

Bruce
Aug 18 '08 #2
Bruce wrote:
Have you considered trying this using VBA (via DAO or ADO)? Might be
a bit slower, but might get past whatever problem you're having.
Thanks. I think I could get the segmented query working faster,
assuming that method works. I'll keep VBA in mind.

I suppose probably I could export as CSV or tab-delimited and import
into MySQL from that.

Edward
Aug 18 '08 #3
I found two workable methods to solve my problem.

First method: set up a query which selects a subset of the table to be
exported (I just used a range on the artificial primary key). Export
the first half of the table to the destination table. Change the query
and export the second half of the table to a temporary destination
table. Move the rows from the temporary table to the permanent one
(insert in permtable select * from temptable) and drop the temporary
table.

Second method: Use the MySQL Migration Tool! Would not have done it
any other way if I'd discovered this first. It just did the job and
moved all the tables without intervention. It did fail on creation of
one of the tables -- don't know why, I just copied the SQL and
executed it manually and it worked and I went on. The tool is free.

I did it by the first method, discovered the second method, discarded
my initial results and used the second. Therefore I don't know what
problems I might have encountered with the first method. I figured
that a tool specifically designed to migrate a DB would likely be more
thorough.

I think the first method was a little faster, but not much and it
certainly didn't make up for the extra intervention required. I don't
think it created all the indices. The resulting DB was the same size
as the JET DB to within 1%.

I'm pretty sure the second method created all the indices on the fly,
which could account for it taking longer. The resulting DB was almost
twice as large as the JET DB. I don't know why. It's possible that it
ended up in Unicode, but that should make little difference, as very
little of the data is character. I haven't tried to figure out why,
since it doesn't matter to me. I ended up, unintentionally, with
everything in InnoDB instead of MyISAM. Doesn't matter much, probably
preferable, but that means it's all in one file and so harder to tell
how much space the indices occupy.

Thanks,

Edward
Aug 19 '08 #4

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

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
2
by: Volker Zink | last post by:
I have a problem with a 9i.2 database. During export i always get following error (its in german): .... .. Kontext-Namespaces werden exportiert .. Exportieren der...
1
by: david | last post by:
Hi I don't know if anyone can help me with this but every time I try and export reports as a 'Rich Text' file from Access 2000 the export fails and I keep getting an 'Overflow' message come up. It...
6
by: Andi Reisenhofer | last post by:
Hallo C# folks, Somebody know how to create a ODBC DSN dynamically in c# program. Also interesting for me would be the connectionstring for an Access Database. Thinks a lot Andreas
0
by: Lewt | last post by:
I am aware of the 'hack the registry' approach. This is just not a safe way to accomplish this on a user's PC. I need to do this the right way. Is there anyone -perhaps from Microsoft - out there...
25
by: junky_fellow | last post by:
Is there any way by which the overflow during addition of two integers may be detected ? eg. suppose we have three unsigned integers, a ,b, c. we are doing a check like if ((a +b) > c) do...
9
by: Bob Sanderson | last post by:
I'm trying to export a table to an ODBC database using a VBA subroutine. I have tested the ODBC setup manually and it works fine but when I try to do it with VBA, I get a "connection failed" error....
4
by: Jeff | last post by:
I need to export MySQL data to Access. As always, there seems to be more than one way to do this. I notice that PHP has: DB.php If I was doing this in perl, there would be an ODBC driver...
0
by: chago | last post by:
Hi all, I am trying to adapt a program, by transforming the output part of it, so it can export to ODBC(SAS), as previously it exported to plain text. Thus I create an SqlDataAdapter "da" by...
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: 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
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.