Subject | Re: Services API and TerminalServer |
---|---|
Author | Adam |
Post date | 2006-01-26T22:31:24Z |
--- In firebird-support@yahoogroups.com, "tdtappe" <tappe@t...> wrote:
find. Firebird can create a fbclient.dll disguised as gds32 to trick
IBX into connecting. It can be generated by the installer or using one
of the included tools (instclient.exe??). If your server has had
Interbase installed (and Delphi does install IB if you don't uncheck
the box), then you may have an incompatible client library in you path
somewhere (SYSTEM32 etc)
the comments. It should say something like:
"This product created by The Firebird Project" ... blah blah blah
Terminal Services does not support local connections, which will
present all sorts of interesting challenges when the security database
no longer accepts TCP connections.
Here is a snipped of working code on FB 1.5 SS
bs := TIBBackupService.Create(self);
try
bs.BackupFile.Text := BackupFBKFile;
bs.DatabaseName := Alias;
bs.LoginPrompt := False;
bs.Params.Append('user_name=sysdba');
bs.Params.Append('password=masterke');
bs.Protocol := TCP;
bs.ServerName := 'localhost';
bs.Verbose := True;
bs.Attach;
bs.ServiceStart;
while not bs.Eof do
begin
slBackupLog.Append(bs.GetNextLine);
end;
bs.Detach;
finally
bs.Free;
end;
Hope that helps
Adam
>No it is using fbclient.dll. gds32 is the dll that IBX expects to
> > If I understand correctly, gsec and IBAdmin work but your application
> > does not.
>
> I can't say for IBAdmin, but for gsec and IBExpert.
>
> > The obvious difference is that your application uses
> > gds32.dll to connect to the database.
>
> Why is this a difference? Isn't gsec also using gds32.dll?
find. Firebird can create a fbclient.dll disguised as gds32 to trick
IBX into connecting. It can be generated by the installer or using one
of the included tools (instclient.exe??). If your server has had
Interbase installed (and Delphi does install IB if you don't uncheck
the box), then you may have an incompatible client library in you path
somewhere (SYSTEM32 etc)
>Make sure it is a Firebird one. Right click --> Properties and check
> > Is there a valid gds32.dll in the Sytem32 folder or in the application
> > folder?
>
> Yes. There is.
the comments. It should say something like:
"This product created by The Firebird Project" ... blah blah blah
Terminal Services does not support local connections, which will
present all sorts of interesting challenges when the security database
no longer accepts TCP connections.
Here is a snipped of working code on FB 1.5 SS
bs := TIBBackupService.Create(self);
try
bs.BackupFile.Text := BackupFBKFile;
bs.DatabaseName := Alias;
bs.LoginPrompt := False;
bs.Params.Append('user_name=sysdba');
bs.Params.Append('password=masterke');
bs.Protocol := TCP;
bs.ServerName := 'localhost';
bs.Verbose := True;
bs.Attach;
bs.ServiceStart;
while not bs.Eof do
begin
slBackupLog.Append(bs.GetNextLine);
end;
bs.Detach;
finally
bs.Free;
end;
Hope that helps
Adam