Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1682
  • Last Modified:

Get table relations using DbConnection.GetSchema

Hi...

Is it possible to get the tables relations using the DbConnection.GetSchema?

I'm able to get everything else I need except the relations.

I can list the foreignkeys using: Connection.GetSchema("ForeignKeys");

And the available options I think I have are:
MetaDataCollections
DataSourceInformation
DataTypes
Restrictions
ReservedWords
Users
Databases
Tables
Columns
StructuredTypeMembers
Views
ViewColumns
ProcedureParameters
Procedures
ForeignKeys
IndexColumns
Indexes
UserDefinedTypes


Is it possible?

Thanks,
Alex
0
Alexandre Simões
Asked:
Alexandre Simões
1 Solution
 
anarki_jimbelCommented:
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now