Board index » delphi » Getting Server Name from TDatabase.Params

Getting Server Name from TDatabase.Params

I need to get the Oracle connect string the BDE has defined as "Server
Name".  I should be able to get this information from TDatabase.Params
object.  But, when I look to see what is contained in the TStrings object,
all I get is UserName and Password.  Can anybody tell me what I need to do
to get the Server Name?

 

Re:Getting Server Name from TDatabase.Params


Hi Sandy,

var
str: string;
db: TDatabase;
...
str := db.Params.Values['SERVER NAME'];
...

works fine for me.

Herbert

--

---
Herbert Urwer
hur...@usd.de
http://www.usd.de

"The road goes ever on and on ..." (Bilbo Baggins)

Sandy Kabat schrieb in Nachricht
<01bd46d2$0428c860$74000...@sandy.LMCompanies.Com>...

Quote
>I need to get the Oracle connect string the BDE has defined as "Server
>Name".  I should be able to get this information from TDatabase.Params
>object.  But, when I look to see what is contained in the TStrings object,
>all I get is UserName and Password.  Can anybody tell me what I need to do
>to get the Server Name?

Other Threads