Subject | Re: [firebird-support] Re: Is This Database Running As Embedded Server or Client Server? |
---|---|
Author | Martijn Tonies |
Post date | 2009-09-24T09:47:18Z |
Hello Larry,
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com
>> > I have a backup utility that needs to run with apps using embeddedWhat does the recover functionality do?
>> > server or client-server versions of Firebird.
>> >
>> > This utility needs to know if it's running embedded, so it won't run
>> > svc->Shutdown().
>> >
>> > I don't see a column in a system table that will tell me if I'm
>> > running
>> > an embedded server or a client-server version of Firebird.
>> >
>> > How can this utility know the server type?
>>
>> Why do yu want to shut down the server anyway?
>>
>> Is it so you can safely copy the database file(s)?
>>
>> If so, I suggest a different approach:
>> - run "gbak", or use the "Services API" of Firebird to create a Firebird
>> backup
>> - copy the resulting file
>
> Thanks Martijn:
>
> Oh CRAP!
>
> My typo. It's the recover utility, not the backup. Backup works fine
> with either type of server.
>
> Sorry.
>
> The app does use the services API. I want to keep the recovery as
> simple for the non-technical users I expect to be running the app, and
> administering the database. So the app has a "Recover" button and a
> dialog asking the location of the source of the recovery.
>
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com