Solved

How to extract the server information from the BDE

Posted on 2000-03-08
2
171 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now