Link to home
Start Free TrialLog in
Avatar of jonnyfive
jonnyfive

asked on

How to extract the server information from the BDE

Hi everyone...

I want to extract some information from a BDE alias. This alias is a "MS SQL - SQL Link". I want to get the server name, database name and user name. I looked at the BDE API help, but couldn't find anything in this direction. Any code example is highly welcome :-]

Thanks, Jonny...
ASKER CERTIFIED SOLUTION
Avatar of simonet
simonet
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here's another example (from the Delphi help files):

MyStringList := TStringList.Create;
try
  Session.GetAliasParams('DBDEMOS',MyStringList);
  { fill a list box with driver names for the user to select from }
  ListBox1.Items := MyStringList;
finally
  MyStringList.Free;
end;

Alex