Using ODBC to manipulate Excel

Source: Internet
Author: User
Tags odbc odbc connection visual studio

For a reason, yesterday my old daddy asked me to help him put some Excel data into the FoxPro database, according to the requirements of the table structure, but also to do some processing. (I faint, there are people in these days with FoxPro)

As a then, I installed that n years have no use of Visual Studio 6.0, read a half-day MSDN, simple little play FoxPro, feel too retarded, not too accustomed.

Thought since FoxPro is also a small database, should support ODBC connection bar, and then I can use Java or Python, such as direct operation of the language.

I didn't think. Open ODBC data source settings A look, incredibly even Excel support ODBC, really did not think

Export data from Excel, the usual idea is that you can save it as a CSV or XML, and then casually take a language analysis, did not expect Microsoft is more considerate, directly build a DSN, and then write the SQL statement, hehe

By the way, the name of the table in Excel is [sheet1$], which must be written as SELECT * FROM [sheet1$] to choose Sheet1, specifically why ask m$.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.