How to use AddAlias method in TIBCServerProperties?
Posted: Thu 10 Mar 2011 14:12
Hi!
Need help! How to use AddAlias method in TIBCServerProperties??
Delphi7/FireBird 2.5
i write so..
In Options properties [poDBAlias]...
Server = localhost(127.0.0.1)
with ServerProp do
begin
Params.Clear;
Params.Add('user_name=' + AdminName);
Params.Add('user_pass=' + AdminPass);
try
Attach; // Here is ok.. Service is attached...
AddAlias(MyAliasName, MyDatabasePath) /// here is error...
// return Error: Unrecognized service parameter block
finally
Detach;
end;
end;
Need help! How to use AddAlias method in TIBCServerProperties??
Delphi7/FireBird 2.5
i write so..
In Options properties [poDBAlias]...
Server = localhost(127.0.0.1)
with ServerProp do
begin
Params.Clear;
Params.Add('user_name=' + AdminName);
Params.Add('user_pass=' + AdminPass);
try
Attach; // Here is ok.. Service is attached...
AddAlias(MyAliasName, MyDatabasePath) /// here is error...
// return Error: Unrecognized service parameter block
finally
Detach;
end;
end;