<p>My job would be easier, or at least less tedious if I could come up with an automated way (preferably in a Python script) to extract useful information from a FileMaker Pro database. I am working on Linux machine and the FileMaker database is on the same LAN running on an OS X machine. I can log into the webby interface from my machine.</p>

<p>I'm quite handy with SQL, and if somebody could point me to some FileMaker plug-in that could give me SQL access to the data within FileMaker, I would be pleased as punch. Everything I've found only goes the other way: Having FileMaker get data from SQL sources. Not useful.</p>

<p>It's not my first choice, but I'd use Perl instead of Python if there was a Perl-y solution at hand.</p>

<p><em>Note</em>: XML/XSLT services (as suggested by some folks) are only available on FM Server, not FM Pro. Otherwise, that would probably be the best solution. ODBC is turning out to be extremely difficult to even get working. There is absolutely zero feedback from FM when you set it up so you have to dig through /var/log/system.log and parse obscure error messages.</p>

<p><em>Conclusion</em>: I got it working by running a python script locally on the machine that queries the FM database through the ODBC connections. The script is actually a TCPServer that accepts socket connections from other systems on the LAN, runs the queries, and returns the data through the socket connection. I had to do this to bypass the fact that FM Pro only accepts ODBC connections locally (FM server is required for external connections).</p>

[{'answer_id': 28692, 'author': 'Ryan Farley', 'author_id': 1627, 'author_profile': 'https://Stackoverflow.com/users/1627', 'pm_score': 4, 'selected': True, 'text': '<p>It has been a <strong>really</strong> long time since I did anything with FileMaker Pro, but I know that it does have capabilities for an ODBC (and JDBC) connection to be made to it (however, I don\'t know how, or if, that translates to the linux/perl/python world though).  </p>\n\n<p>This article shows how to share/expose your FileMaker data via ODBC &amp; JDBC:<br>\n<a href="http://www.filemaker.com/help/15-Using%20ODBC2.html" rel="noreferrer">Sharing FileMaker Pro data via ODBC or JDBC</a>   </p>\n\n<p>From there, if you\'re able to create an ODBC/JDBC connection you could query out data as needed.</p>\n'}, {'answer_id': 36852, 'author': 'cornwalker', 'author_id': 3861, 'author_profile': 'https://Stackoverflow.com/users/3861', 'pm_score': 2, 'selected': False, 'text': '<p>You\'ll need the FileMaker Pro installation CD to get the drivers. <a href="http://www.filemaker.com/downloads/pdf/fm9_odbc_jdbc_guide_en.pdf" rel="nofollow noreferrer">This document</a> details the process for FMP 9 - it is similar for versions 7.x and 8.x as well. Versions 6.x and earlier are completely different and I wouldn\'t bother trying (xDBC support in those previous versions is "minimal" at best).</p>\n\n<p>FMP 9 supports SQL-92 standard syntax (mostly). Note that rather than querying tables directly you query using the "table occurrence" name which serves as a table alias of sorts. If the data tables are stored in multiple files it is possible to create a single FMP file with table occurrences/aliases pointing to those data tables. There\'s an "undocumented feature" where such a file must have a table defined in it as well and that table "related" to any other table on the relationships graph (doesn\'t matter which one) for ODBC access to work. Otherwise your queries will always return no results.</p>\n\n<p>The PDF document details all of the limitations of using the xDBC interface FMP provides. Performance of simple queries is reasonably fast, ymmv. I have found the performance of queries specifying the "LIKE" operator to be less than stellar.</p>\n\n<p>FMP also has an XML/XSLT interface that you can use to query FMP data over an HTTP connection. It also provides a PHP class for accessing and using FMP data in web applications.</p>\n'}, {'answer_id': 51132, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>If your leaning is to Python, you may be interested in checking out the Python Wrapper for Filemaker.   It provides two way access to the Filemaker data via Filemaker\'s built-in XML services.   You can find some quite thorough information on this at:</p>\n\n<p><a href="http://code.google.com/p/pyfilemaker/" rel="nofollow noreferrer">http://code.google.com/p/pyfilemaker/</a></p>\n'}]
['https://Stackoverflow.com/questions/28668', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1892/']