Solved

How to extract the server information from the BDE

Posted on 2000-03-08
2
177 Views
Last Modified: 2013-11-23
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...
0
Comment
Question by:jonnyfive
  • 2
2 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 100 total points
ID: 2596182
Call GetAliasParams to retrieve the BDE configuration parameters for a specified alias.

Here's an example:

Session.GetAliasParams('DBMSSQL', ListBox1.items);


Yours,

Alex
0
 
LVL 15

Expert Comment

by:simonet
ID: 2596185
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
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best Firemonkey component pack 1 105
Comparing dates in Delphi. Greater than/ Less than 3 154
Reconfigure Delphi Install? 2 51
Graphics32 under Delphi 10.1 Berlin 2 67
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question