Subject Re: [IBO] TIBOConfigService
Author Robert Martin
Hi

The solution is to set .Active := True before calling ShutdownDatabase :)

Dodgy error message !


On 10/05/2013 2:19 p.m., Robert Martin wrote:
> Hi Jason
>
> I am trying to use he following code to take a database offline
>
> with IBOConfigService do begin
> ServerName := FindComputerName;
> DatabaseName := aDatabaseName;
> LoginPrompt := False;
> Params.Add('user_name=' + WS_DB_USERNAME);
> Params.Add('password=' + WS_DB_PASSWORD);
>
> ShutdownDatabase(Forced, 0);
> end;
>
>
> Protocol is set to TCP/IP.
>
>
> However it is coming up with 'Invalid service handle' when it gets to
> ShutdownDatabase(Forced, 0).
>
> Any suggestions as to what I might be doing wrong here?
>
> Thanks
> Rob
>