Board index » delphi » Primary Keys from table

Primary Keys from table

Hi there,

I'm trying to get the Primary- and Foreign-Keys of any table in a database.
I could not find any Delphi components or SQL-statements that can do this.

Any Hints ?

Thanks,

Sven

 

Re:Primary Keys from table


Re:Primary Keys from table


U?ytkownik Sven Ldtke <lued...@wallace.ping.de> w wiadomo?ci do grup
dyskusyjnych napisa3:952910145.871...@erwin.dorf.wh.uni-dortmund.de...

Quote
> Hi there,

> I'm trying to get the Primary- and Foreign-Keys of any table in a
database.
> I could not find any Delphi components or SQL-statements that can do this.

> Any Hints ?

> Thanks,

> Sven

Hi,
If I understand you correctly, you should use Borland Database Desktop.
Greetings,
SG

Re:Primary Keys from table


Re:Primary Keys from table


Maybe the DbiOpenIndexList function detailed in the BDE32.HLP would give you
what you're looking for, or at the least, some pointers in the right
direction.

HTH,

Conor

Quote
> Uytkownik Sven Ldtke <lued...@wallace.ping.de> w wiadomoci do grup
> dyskusyjnych napisa:952910145.871...@erwin.dorf.wh.uni-dortmund.de...
> > Hi there,

> > I'm trying to get the Primary- and Foreign-Keys of any table in a
> database.
> > I could not find any Delphi components or SQL-statements that can do
this.

> > Any Hints ?

> > Thanks,

> > Sven

Re:Primary Keys from table


Hi, Sven.

If you want to get that information you must use BDE API function. For more
information look at DBE32.HLP.

Regards.
--
Petio Tonev
pto...@iname.com
www.i.am/ptonev , www.w3.to/tonevsoft

Other Threads