🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1566

Re: TADOConnection::OpenSchema question

#1566
From: Arnie Mauer
Date: Tue, 18 May 2004 12:25
55 lines
2575 bytes
Thanks Vassiliev,

That works - sort of.  Actually it works fine for DB2 and SQL Server.  But,
with Oracle 9i, I seem to be getting some duplicate table names as well as
system tables.  Any ideas on the dups or getting rid of the system tables?

Thanks,
- Arnie

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
news:40a9e424@newsgroups.borland.com...
> Why v1(0) - it will be integer with value 0. You should pass empty
parameter
> (EmptyParam in Delphi).
>
>  OleVariant EmptyParam;
>  EmptyParam.VType  = VT_ERROR;
>  EmptyParam.VError = DISP_E_PARAMNOTFOUND;
>
>  OpenSchema(siTables, EmptyParam, EmptyParam, ds);
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
> ADO.Net
> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> MS Jet (Access) and Interbase (through OLEDB)
>
> "Arnie Mauer" <xxx@nowhere.net> �������/�������� � �������� ���������:
> news:40a8f814$1@newsgroups.borland.com...
> > Hi,
> >
> > I swear I had it working at one time but no longer have the code.  I
just
> > want to get a list of tables in the schema.
> >
> > Using:
> >
> >    db->Open();
> >    TADODataSet * ds = new TADODataSet( db );
> >    ds->Connection = db;
> >    OleVariant v1(0), v2(0);
> >    db->OpenSchema( siTables, v1, v2, ds );
> >
> > I get the "Arguments are of the wrong type, ..." error message on the
> > OpenSchema call.  Any suggestions?
> >
> > Thanks,
> > - Arnie
> >
> >
> >
>
>
Technical Details
Message-ID: <40aa00ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!propagator3-cogent!in.nntp.be!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40a8f814$1@newsgroups.borland.com> <40a9e424@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,9e7f498881b02be9
X-Google-Attributes: gid10698b,public
From: "Arnie Mauer" <xxx@nowhere.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40a8f814$1@newsgroups.borland.com> <40a9e424@newsgroups.borland.com>
Subject: Re: TADOConnection::OpenSchema question
Date: Tue, 18 May 2004 08:25:34 -0400
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 209.140.211.97
Message-ID: <40aa00ec@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084883180 209.140.211.97 (18 May 2004 05:26:20 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!propagator3-cogent!in.nntp.be!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail