Using ODBC in Jaguar?
dmayle asks: "I've decided to do some Mac-based database development, and, since Apple was kind enough to include ODBC Administrator, I decided to use that as a starting point. The only problem is, there doesn't seem to be ANY documentation anywhere about it. I know that PostgreSQL for Mac includes an ODBC driver, but again, I can's seem to find out any docs on how to use it... Are there any developers using this tool out there, and where did you learn how to do it?"
http://www.iodbc.org/
I mean, are you really that stupid?
Big deal, Apple provides ODBC administrator. What good does it do you without any docs or anything? You will be 10000000000000000 times better off using a database and its own administrator that is well documentated.
But even if you really want to be stuck with OS X Server and ODBC... ODBC is open, install PostgreSQL and read how to connect to it via ODBC. That is the docs that matter.
While it's true that MS was a huge proponent of ODBC and had a major hand in implementing it, ODBC is probably one of the only things that they probably helped do right and didnt get their grubby hands in to restrict and control. For more of the history of ODBC, why it's cool, and how it relates to things today, a good read is the chapter on ODBC in the O'Reily Perl DBI book. Much of the perl DBI is drawn and made possible by the existence of ODBC. Incedentally, ODBC MS has twice tried to supplant ODBC in its OS's with OLEDB and some newer ActiveX crap, but ODBC continues to hang on due to it's wide support and general standard implementation.
Sorry I don't have any more about ODBC for OS/X, but since it's unix-like, it's got a 95% chance of being UNIXODBC or iODBC. It's also undoubtadely documented on apple's developer site, which is probably why you can't find any documentation anywhere else.
ODBC Jaguar
I've seen screen shots with man pages in the console. Why not try that?
A good place to starting looking is at iODBC. They provide an SDK with the necessary headers and library to get started. OpenLink provides ODBC drivers for various database engines, as well as a 'Cross-Platform ODBC SDK'.
as of 11:20 est apple.com has slowed to a crawl.
Images fail to load and pages are 404
Is the website being updated for the 1ghz/Superdrive Powerbook?
Anybody?
Actually, use OLEDB where possible on a Microsoft platform. It includes speed and stability and feature advances over ODBC!
The person to ask about this is Marc Lilback; he wrote the ODBC stuff for OS X; his web site at www.lilback.com has drivers, sample code, and ports, but I believe he charges for this. Mac SQL databases are his livelihood.
From the about tab in the ODBC Administrator application, I saw that they were using iodbc librarys. A quick search of the web boards at iodbc.org turned up this from an iODBC developer:
http://www.iodbc.org/wwwboard/messages/1423.htmlSo maybe he's right and the OSX app is just a proof of concept. The interface looks very similar to the ODBC interface on windows. If you have experience with windows ODBC, you might be able to get the mac one working.
<?php while ($self != "asleep") { $sheep_count++; } ?>
Marc Liyanage's one-click postgreSQL comes with some html docs for ODBC setup and config. Use the defaults and they're dropped in
/usr/local/pgsql/doc/html/
blarg.
Check out the iODBC.org website and the OpenLink Software website.
The ODBC components in Jaguar (and Darwin) are based on the open-source iODBC project, supported, coordinated, and maintained by OpenLink Software.
The ODBC Administrator supplied by Apple is a very basic application, capable only of assisting the knowledgeable user in keyword-value pair editing and creation of DSNs.
The OpenLink ODBC Administrator, a/k/a the iODBC Administrator, is installed with all OpenLink Single-Tier and Multi-Tier Drivers for ODBC. This Administrator handles Setup libraries, and provides full GUI dialogs for DSN configuration when the Drivers have been built for such.
Full user documentation is in progress, and developer documentation is available now from the iODBC.org site. Free support for both may be found through the iODBC.org web forum, or through the OpenLink Support pages. You can also chose to write directly to <technical.support@openlinksw.com>.
Enjoy,
Ted Thibodeau Jr Consultant OpenLink Software