MySQL remote ODBC with MS Word

Posted on 2012-08-19
Last Modified: 2012-08-27

I have a MySQL database with tables and I'd like MS Word 2010 to connect to this remote MySQL db. There is an ODBC for MySQL to the MS Office programs:

1) But how do I connect to the remote MySQL from MS Word? Should I be using VB or .NET or C#? I'm new to VB/.NET/C# so if there is some sample code to connect to a remote MySQL db then that would be great. Any good links to tutorials so I can learn remote MySQL connections using .NET/C#? I guess .NET or C# is more powerful than VB but I don't know the pros and cons of .NET vs. VB vs. C#.

2) Would I need to use different code with MS Word 2012? I know it's new but I'm wondering if anyone has tested it yet.

3) Is there a different ODBC for MS Word 2012 than previous versions?

4) I would need to connect to the remote MySQL db from MS Word and then do more complicated data extractions like search for parent_id = 23 and if parent_id has more than 1 child then loop through the children and display children's first and last names on page 2 document at Section 1) a) of the document.

Just wondering where I would start to learn to do something like the above. I'm a pretty fast learner so if I see example code then I can start to understand it.

(On a side note, I was thinking of downloading the Office 2012 Pro for $12 per month and uising MS Word 2102). Any thoughts?

Much thanks,
Question by:Victor Kimura
    1 Comment
    LVL 22

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now