BDE "HOST NAME" Equivalent

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kaiserilich
Posts: 23
Joined: Tue 23 Mar 2010 08:36
Location: spain
Contact:

BDE "HOST NAME" Equivalent

Post by kaiserilich » Wed 30 Apr 2014 11:53

Hi, I need to know the equivalent on UniDac for the BDE "HOST NAME" (Not Server Name) :idea:

bde code:
with DB do
begin
Connected := False;
Params.Clear;
Params.Add('SERVER NAME=' + 'DB_Server');
Params.Add('DATABASE NAME=' + 'Main_Db');
Params.Add('USER NAME=' + 'User' );
Params.Add('PASSWORD=' + 'pass');
Params.Add('HOST NAME'= + 'MyPC' );
Params.Add('APPLICATION NAME=' + 'MyApp');
Connected := True;
end;


Unidac code: (this don't pass the hostname to Sybase)

with db do
begin
Connected := false;
Server := '192.168.0.1';
Port := '4092';
DataBase := 'Main_DB';
UserName := 'User';
Password := 'Pass';
SpecificOptions.Values['ApplicationName'] := 'MyApp';
SpecificOptions.Values['Hostname'] := 'MyPC';

Connected := true;
end;


I try with 'Hostname' , 'HOST NAME', 'HostName', 'HOST' and nothing :(

using:
Delphi 6 up 2
Unidac 5.2.7
Sybase 12.5.4


thanks

stevel
Posts: 125
Joined: Tue 02 Nov 2010 19:01

Re: BDE "HOST NAME" Equivalent

Post by stevel » Wed 30 Apr 2014 13:56

Maybe you don't need hostname. Did you check whether the connection succeeded?

kaiserilich
Posts: 23
Joined: Tue 23 Mar 2010 08:36
Location: spain
Contact:

Re: BDE "HOST NAME" Equivalent

Post by kaiserilich » Mon 05 May 2014 08:00

stevel wrote:Maybe you don't need hostname. Did you check whether the connection succeeded?
don't have problems with the connection.

Just need pass the "host name" to Sybase...

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: BDE "HOST NAME" Equivalent

Post by AlexP » Mon 05 May 2014 13:15

Hello,

Currently, UniDAC doesn't support HostName settings (only ApplicationName). This feature will be added to the next UniDAC version.

kaiserilich
Posts: 23
Joined: Tue 23 Mar 2010 08:36
Location: spain
Contact:

Re: BDE "HOST NAME" Equivalent

Post by kaiserilich » Tue 06 May 2014 06:10

AlexP wrote:Hello,

Currently, UniDAC doesn't support HostName settings (only ApplicationName). This feature will be added to the next UniDAC version.
Thanks so much. :)

I wait for that :arrow:

Post Reply