C
Conceptor
Subject : "ADO.NET: Accessing DB table relationships from
VB.Net"
Hi!
I need to *automatically* access ODBC database table
relationships from VB.Net, preferably using a native
object like ADO.Net, to navigate into the tables using
their relationships. I need this to be automatic,
meaning that I want to open a connection to a database
and automatically get a relations collection of some sort.
In a book I have titled "Upgrading to .Net", page 419,
it is stated that:
"IMPORTANT: Any relationships between DataTables need to
be specified by the programmer. The current version of
ADO.NET does not support propagating preexisting
relationships from the data source to the Dataset.
Therefore, any relationships that are defined in your SQL
database (or other relational databases) need to be
redefined in your dataset."
Since the databases my application will be accessing
are never the same, and that I need a functionality to
view in the GUI the tables and their relationships, I
wonder how I can get those relationships...
Any help would be greatly appreciated!
Thanks in advance,
Conceptor
VB.Net"
Hi!
I need to *automatically* access ODBC database table
relationships from VB.Net, preferably using a native
object like ADO.Net, to navigate into the tables using
their relationships. I need this to be automatic,
meaning that I want to open a connection to a database
and automatically get a relations collection of some sort.
In a book I have titled "Upgrading to .Net", page 419,
it is stated that:
"IMPORTANT: Any relationships between DataTables need to
be specified by the programmer. The current version of
ADO.NET does not support propagating preexisting
relationships from the data source to the Dataset.
Therefore, any relationships that are defined in your SQL
database (or other relational databases) need to be
redefined in your dataset."
Since the databases my application will be accessing
are never the same, and that I need a functionality to
view in the GUI the tables and their relationships, I
wonder how I can get those relationships...
Any help would be greatly appreciated!
Thanks in advance,
Conceptor