Solved

How to extract the server information from the BDE

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to call a form that is in a DLL  from an application? 13 80
Delphi inherited method 6 76
Base1 Encode/Decode 3 81
Twebbrowser add css to the header 3 27
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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