Subject | TIBOConfigService |
---|---|
Author | Robert Martin |
Post date | 2013-05-10T02:19:28Z |
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
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