On my BeforeConnect event I would like to set in ApplicationName property more information such as UserName, CustomerID, Version of an Application:
This is na Example:
procedure TDm.bazaBeforeConnect(Sender: TObject);
begin
PreveriGeslo(iDajPodStavniceStr('POS_TIP'));
baza.Params.Values['HostName'] := BazaServer;
baza.Params.Values['DataBase'] := BazaIme;
baza.Params.Values['User_Name'] := BazaUser;
baza.Params.Values['Password'] := BazaGeslo;
baza.Params.Values['Application Name'] := Copy('/' + Verzija + '/SlCent/' + gsPOS_SIF + '/' + UserName, 1, 30);
end;
This example didn' t work, can anybody help me!
I develop in delphi 6 and using the latest dbx driver!
Thans for Help
Application name
Re: Application name
Delphi 6 doesn't support this parameter.fred wrote:On my BeforeConnect event I would like to set in ApplicationName property more information such as UserName, CustomerID, Version of an Application:
I develop in delphi 6 and using the latest dbx driver!
So are there any alterntives.
We have a licensing system that relies on us populating the application name field. We are currently moving our applicaitons from using ADO to dbexpress. Does anyone no of any other options.
Re: So are there any alterntives.
If you migrate from ADO you should pay attention on SDAC. It is more convenient and provides more functionality than dbExpress. Beside that SDAC has ADO Migration Wizard.