Article View: borland.public.cppbuilder.database.ado
Article #3389ADO: Read Tables List & Open Any table.
From: Shaya
Date: Mon, 09 Sep 2002 12:42
Date: Mon, 09 Sep 2002 12:42
19 lines
1480 bytes
1480 bytes
B"H Hi, all! I am working with Prof. Builder C++ 6 and Microsoft SQL 2000 database. 1) I am getting the tables list: ADOConnection1->GetTableNames( ComboBoxTables->Items, true ); 2) I am trying to connect to any table from list ADOTable1->TableName = ComboBoxTables->Items->Strings[ ComboBoxTables->ItemIndex ]; and receve error: "Invalid object name: ...". If I'm trying to connect with <owner>.<table name> table name - it's working good. Help me please! How can I connect to any table from list?
Technical Details
Message-ID:
<3d7c89f2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,f505a4725d933470,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-09-09 06:32:14 PST Reply-To: "Shaya" <shaya@lipman.co.il> From: "Shaya" <shaya@lipman.co.il> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADO: Read Tables List & Open Any table. Date: Mon, 9 Sep 2002 14:42:12 +0200 Lines: 22 Organization: Lipman X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 199.203.172.109 Message-ID: <3d7c89f2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1031571954 199.203.172.109 (9 Sep 2002 04:45:54 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail