Application name

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
fred

Application name

Post by fred » Fri 05 Nov 2004 12:36

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

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: Application name

Post by Ikar » Tue 09 Nov 2004 07:07

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.

fred2

So are there any alterntives.

Post by fred2 » Wed 10 Nov 2004 07:19

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.

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: So are there any alterntives.

Post by Ikar » Thu 11 Nov 2004 09:31

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.

Post Reply