Subject Re: How to bring DB online with Firebird API - 'Unrecognized service parameter bloc'
Author vincent_kwinsey
Thanks,

I got FBLib, and its FBLService.pas contains the call of service API
functions, even to make shutdown, but strange thing - I didn't
managed to find function for bringing DB back online. If one had
existed then it would have to use constant isc_spb_prp_db_online. So -
all my problems are around what kind of arguments to use, I use:

spb:='';
spb:=char(isc_action_svc_properties);
spb:=spb+char(isc_spb_dbname)+char(Length(dbname))+char(Length
(dbname) shr 8)+dbname;
spb:=spb+char(isc_spb_prp_db_online);
stat:=ISCServiceStart(@sv,@serviceHandle,nil,Length(spb),pchar
(spb));

but it issues 'unrecognized...' error.

--- In firebird-support@yahoogroups.com, "Boguslaw Brandys"
<brandys@...> wrote:
>
> You can also use FBlib AFAIK.
>
>
> Regards
> Boguslaw
>
> ----- Original Message -----
> From: Philippe Makowski
> To: firebird-support@yahoogroups.com
> Sent: Friday, July 04, 2008 5:53 PM
> Subject: Re: [firebird-support] How to bring DB online with
Firebird API - 'Unrecognized service parameter bloc'
>
>
> vincent_kwinsey [08-07-04 16.01] :
> > Hi,
> >
> > I need to bring DB online using FB API, because I am not
allowed to
> > use IBC Admin components. So - there are 4 FB service API, and
I
> > worte the following code
> since you are using FreePascal, I suggest you look at UIB
> https://uib.svn.sourceforge.net/svnroot/uib/trunk
> you'll get there all you need
>
>
>
>
>
>
> Wiadomooæ e-mail sprawdzona przez Internet Security (5.5.0.212)
> Wersja bazy danych: 5.10170
> http://www.pctools.com/internet-security/
>
>
>
>
> WiadomoϾ e-mail sprawdzona przez Internet Security (5.5.0.212)
> Wersja bazy danych: 5.10170
> http://www.pctools.com/pl/internet-security/
>
>
> [Non-text portions of this message have been removed]
>