Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 26th, 2002, 05:28 PM
homenetguy homenetguy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 8 homenetguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to homenetguy
Access tabel to MySQL table

I am exporting an Access table of about 2300 records to a MySQL table with a MySQL insert statement but only 985 records will export. I have looked at the record 986 in the Access table but nothing is wrong with it. It almost seems as if there is some limitation that it is reaching. ??? Any help would be great.

Reply With Quote
  #2  
Old May 27th, 2002, 11:27 PM
dcaillouet's Avatar
dcaillouet dcaillouet is offline
Big Endian
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: May 2001
Location: Fly-over country
Posts: 1,172 dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level)dcaillouet User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 16 h 29 m 5 sec
Reputation Power: 29
Can you export with an Access insert statement instead to see if you get an indication of the problem.

Open Access.
Link in the MySQL table using the ODBC driver.
Do an append query of the Access table to the empty MySQL table.
Access will pop up a message saying how many records you are about to append, how many will fail (and the reasons they will fail) and do you want to continue.

Maybe this type of process will help you locate the problem.

Reply With Quote
  #3  
Old May 28th, 2002, 12:17 PM
homenetguy homenetguy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 8 homenetguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to homenetguy
i got the .txt file to upload using a mysql client session. my Access function uses a mysql INSERT command. is this what you mean? what other syntax should i use?
thanks for the help

Reply With Quote
  #4  
Old May 29th, 2002, 08:38 AM
binky's Avatar
binky binky is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: New Zealand
Posts: 1,774 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 58 m 15 sec
Reputation Power: 23
I'm sure that I've had this problem before as well, I was trying to import into access and it could only import a set number of characters.

Possibly the best way to do it would be to run an asp script that builds an sql script and saves it as a file.

So you would:

get the table information: fieldnames and definitions.. and build a 'create table' command. Then loop through the records and build an 'insert into' command for each record.
__________________
Smartfone Warehouse

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Access tabel to MySQL table

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap