Page 1 of 1

Application name

Posted: Fri 05 Nov 2004 12:36
by fred
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

Re: Application name

Posted: Tue 09 Nov 2004 07:07
by Ikar
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!
Delphi 6 doesn't support this parameter.

So are there any alterntives.

Posted: Wed 10 Nov 2004 07:19
by fred2
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.

Posted: Thu 11 Nov 2004 09:31
by Ikar
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.