Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Downloads
  • Artworks

Archives

Recent Posts

  • Good evening h00mans…
  • Ai texas translation and more wtf
  • Get something in the mail
  • Not dead: Number Five is Alive
  • Ipso facto I passed
  • Argh philosophy
  • Up-grade
  • Beyond thought: liked, but…
  • Programming something…
  • Route 66: Oklahoma to Texas

Categories

  • Farmland chronicles
  • h00min resources
  • ITainment
  • Japanese Music
  • Japanese TV
  • Johnny's Jimusho
  • Korean music (kpop)
  • Korean TV
  • Music
  • Psychology
  • Solstice Productions
  • Tomohisa Yamashita
  • Webdesign

Recent Comments

  • Manu chan on Ai texas translation and more wtf
  • Manu chan on Ai texas translation and more wtf
  • Feles on Ai texas translation and more wtf
  • SnowMyth on Ai texas translation and more wtf
  • Feles on Get something in the mail

Import records to MySQL db from any ODBC source

This is a really neat trick I’ve learned that can get any records from other databases mapped to a MySQL database. I had quite a few MS Access databases and decided to reprogram the applications to a web application. This left me with getting the records from MS Access to the new MySQL database.

1. Setting up an ODBC connection to your data source.

Go to the computer settings screen, system tools, ODBC connections. Create a SYSTEM DSN to your source database.

2. Create a MySQL database and desired tables.

3. Customize script and call it.

The script can be downloaded here. The important parts of the script are:

If you want to expand your field list (MySQL tables have a higher field count), make sure you include ‘dummy values’ in the SQL INSERT statement to match the number of fields extracted.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:grin: :sad: :eek: :confused: :angry: :mad: :P :cry: :evil: :grr: :hoping: :smug: :bawl: :genki: :love: :hearteyes: :huh: :pissedoff: :ill: :mwahaha: :sweatdrop: :kickass: :drool: :wow: :wub: :sleepy: :unsure: :usuck: :victory: :innocent: :yippee: :hoi: :roflmao: :worship: :spank: :puke: :voyeur: :twitch: :fuming: :smokin: :omg: :food:

RSS Recent tracks

  • Apocalyptica – Romance
  • Extol – Emancipation
  • Mnemic – Climbing Towards Stars
  • Chaos Divine – Our Delusion
  • Slayer – Ghosts Of War
  

© 2011/ 2012 - Code Silence