Subject | Re: Is This Database Running As Embedded Server or Client Server? |
---|---|
Author | inoffensive_2009 |
Post date | 2009-09-24T09:40:52Z |
--- In firebird-support@yahoogroups.com, "Martijn Tonies" <m.tonies@...> wrote:
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.
Thanks
Larry
>Thanks Martijn:
> Hello Larry,
>
> > I have a backup utility that needs to run with apps using embedded
> > 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
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.
Thanks
Larry