|
From: Martijn T. <m.t...@up...> - 2004-06-11 16:51:42
|
Hi Eric, > Is there a programmatic way to connect to a Firebird server and not to a > specific DB? What I really want to do is connect to the server, see if > the DB I want is there, and create it if not. This is easy in MySQL, > but I can't figure a clean way to do it with Firebird. I can obviously > attempt to connect to the server:DB, and, if that fails, attempt to > create the DB with isc_dsql_execute_immediate. But if that second > action fails, I can't tell exactly at what stage the error is happening. > The IB OpGuide.pdf talks about how you can do this with the GUI > IBConsole app, but I haven't seen any way to do it programmatically. > > I need to do this on both Windows and Mac OS X (which I believe is a > Classic server only). That may limit my options. If you're connected to the server, what is it that you want to do? Or even without connecting to the server -- what do you want to do? With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server. Upscene Productions http://www.upscene.com |