Retrieving the Data Source, Password, User ID and Initial Catalog from a TADOConnection
From: Bill N (billnielsen_at_hotmail.com)
Date: 03/30/04
- Next message: J. M. De Moor: "Re: TADOStoredProc.Recordset.Fields[i] and TField"
- Previous message: Bill N: "TADOStoredProc.Recordset.Fields[i] and TField"
- Next in thread: Brian Bushay TeamB: "Re: Retrieving the Data Source, Password, User ID and Initial Catalog from a TADOConnection"
- Reply: Brian Bushay TeamB: "Re: Retrieving the Data Source, Password, User ID and Initial Catalog from a TADOConnection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: J. M. De Moor: "Re: TADOStoredProc.Recordset.Fields[i] and TField"
- Previous message: Bill N: "TADOStoredProc.Recordset.Fields[i] and TField"
- Next in thread: Brian Bushay TeamB: "Re: Retrieving the Data Source, Password, User ID and Initial Catalog from a TADOConnection"
- Reply: Brian Bushay TeamB: "Re: Retrieving the Data Source, Password, User ID and Initial Catalog from a TADOConnection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|