🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting the type of a field

#2508
From: Viatcheslav V. Vassiliev
Date: Thu, 05 Jun 2003 05:53
19 lines
1729 bytes
Look help for TADOConnection->OpenSchema. You need siColumns schema.

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.

"Yassin" <urmail@yahoo.com> �������/�������� � �������� ���������:
news:3ede76d1$1@newsgroups.borland.com...
>
> Hi,
> If I know the database name I can get the table names by calling
GetTableNames. If I know the table name I can know the name of the fields by
calling GetFieldNames(tableName, fields). My question is: how can I know the
type (int, date, text,...) of a field if I know the name of the fiels and/or
the name of the table?
>
Technical Details
Message-ID: <3edee1f1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ede76d1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,858833551822127
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-06-04 23:26:43 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3ede76d1$1@newsgroups.borland.com>
Subject: Re: Getting the type of a field
Date: Thu, 5 Jun 2003 09:53:09 +0400
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.247.201.57
Message-ID: <3edee1f1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054794225 213.247.201.57 (4 Jun 2003 23:23:45 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail