Article View: borland.public.cppbuilder.database.ado
Article #3161Re: Creating Custom Connection String in run time
From: Ronald Loonstra
Date: Mon, 25 Nov 2002 00:13
Date: Mon, 25 Nov 2002 00:13
28 lines
1738 bytes
1738 bytes
Pete, > There is a nice ConnectionString builder in ADOConnection control where you > can create a desired connection string in design time. I would like to let > the end-user create the desired connection string (in run time). WideString NewConnectionString = PromptDataSource(int Handle, WideString WSOldConnectionString) (undocumented) > I also want to list all the table names that the database [that the end-user decided to > connect to] contains. void __fastcall GetTableNames(Classes::TStrings* List, bool SystemTables = false); void __fastcall GetFieldNames(const AnsiString TableName, Classes::TStrings* List); Both are members of the TADOConnection class. See the helpfile for details. -- HTH Ronald Loonstra CodeFit Applications www.codefit.nl
Technical Details
Message-ID:
<3de16964@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3de159db$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,eae90cdf3851499d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-11-24 16:08:58 PST From: "Ronald Loonstra" <r.loonstra@codefit.nl> Newsgroups: borland.public.cppbuilder.database.ado References: <3de159db$1@newsgroups.borland.com> Subject: Re: Creating Custom Connection String in run time Date: Mon, 25 Nov 2002 01:13:21 +0100 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 217.121.245.5 Message-ID: <3de16964@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038182756 217.121.245.5 (24 Nov 2002 16:05:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail