🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Determining which fields is the primary Key at runtime

#2221
From: Viatcheslav V. Vassiliev
Date: Fri, 17 Oct 2003 08:49
19 lines
1588 bytes
Look TADOConnection.OpenSchema(siPrimaryKeys).

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


"Daniel" <admin@netcomm.com> �������/�������� � �������� ���������:
news:3f8f23c7$1@newsgroups.borland.com...
> Can anyone help me to determine which fields within a Table is the Primary
> Key either by making a SQL call or by interrogating a TTable or TADOTable
> which is connected to a Microsft Access database at RUNTIME.
>
> Thanks.
>
>
Technical Details
Message-ID: <3f8fafc9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8f23c7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,3b0725d3a55d7aa1
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-10-17 02:10:01 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3f8f23c7$1@newsgroups.borland.com>
Subject: Re: Determining which fields is the primary Key at runtime
Date: Fri, 17 Oct 2003 12:49:30 +0400
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.234.218.42
Message-ID: <3f8fafc9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066381257 213.234.218.42 (17 Oct 2003 02:00:57 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail