Subject | Re: How to bring DB online with Firebird API - 'Unrecognized service parameter bloc' |
---|---|
Author | vincent_kwinsey |
Post date | 2008-07-07T08:25:15Z |
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:
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:
>Firebird API - 'Unrecognized service parameter bloc'
> 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
>allowed to
>
> vincent_kwinsey [08-07-04 16.01] :
> > Hi,
> >
> > I need to bring DB online using FB API, because I am not
> > use IBC Admin components. So - there are 4 FB service API, andI
> > 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]
>