🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOConnection::OpenSchema question

#1565
From: Viatcheslav V. Vassiliev
Date: Tue, 18 May 2004 10:23
40 lines
2115 bytes
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: <40a9e424@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40a8f814$1@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: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40a8f814$1@newsgroups.borland.com>
Subject: Re: TADOConnection::OpenSchema question
Date: Tue, 18 May 2004 14:23:33 +0400
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40a9e424@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084875812 213.234.218.42 (18 May 2004 03:23:32 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail