From: Jim S. <ja...@ne...> - 2004-06-11 16:34:37
|
Eric Sword wrote: >All, > >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. > > The obvious solution is to try to attach the database, and if that fails, create it. But the answer to your immediate question is, no, there is no way to talk to a server directly. -- Jim Starkey Netfrastructure, Inc. 978 526-1376 |