Hi,

I can use "...Connection.GetSchema("ForeignKeys")" to get the name of an
foreign key defined for a table.

But how to get related/additional infos like the referenced table(name) and
the corresponding fields ?

Thx
Robert Holler

Re: Metadata about Foreign Keys ADO.NET 2.0 by Sahil

Sahil
Sun Jan 02 15:54:58 CST 2005

You'll need to query the master db.

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik


"rob" <rob@discussions.microsoft.com> wrote in message
news:0A755805-8F04-4F19-9046-DD9994B75295@microsoft.com...
> Hi,
>
> I can use "...Connection.GetSchema("ForeignKeys")" to get the name of an
> foreign key defined for a table.
>
> But how to get related/additional infos like the referenced table(name)
> and
> the corresponding fields ?
>
> Thx
> Robert Holler