Retrieving the Data Source, Password, User ID and Initial Catalog from a TADOConnection

From: Bill N (billnielsen_at_hotmail.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 16:19:23 -0500

How do I retrieve the Data Source, Password, User ID and Initial Catalog
from a TADOConnection?

I know I can parse the connectionString but I thought I could use something
like:
========================================================
var s:string;
begin
 s:=dtmdlCPU.conCPU.Properties['Data Source'].Value;
  s:=dtmdlCPU.conCPU.Properties['User ID'].Value;
  s:=dtmdlCPU.conCPU.Properties['Password'].Value;
  s:=dtmdlCPU.conCPU.Properties['Initial Catalog'].Value;
end;
========================================================

Is there a way of retrieving this info without the parsing routine?

Thanks,
Bill N



Relevant Pages

  • Re: C code for Internet Access
    ... > Can someone provide me with a simple prototype for internet access ... That will retrieve the URL and store it in the local file as given ... you can parse it locally using some program you write. ...
    (comp.lang.c)
  • Re: modifying results
    ... You'll need to retrieve the article body, parse it to find the word ... "Stress can cause distress in the stressed individual and his ...
    (microsoft.public.inetserver.asp.general)
  • Re: ASP.net multithreading?
    ... I want to allow the user to select which sites to retrieve and parse. ... > Am I able to use ASP.net to multithread retrieve webpages? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: ASP.net multithreading?
    ... I want to allow the user to select which sites to retrieve and parse. ... > Am I able to use ASP.net to multithread retrieve webpages? ...
    (microsoft.public.dotnet.languages.vc)
  • Re: ASP.net multithreading?
    ... I want to allow the user to select which sites to retrieve and parse. ... > Am I able to use ASP.net to multithread retrieve webpages? ...
    (microsoft.public.dotnet.framework.aspnet)