Hi.
I hope this is the right forum to ask this question. If not, please direct me to the proper one.
I have a SQL database and would like to have a listing of all the tables in this database as well as the linking relationships of the tables.
I'm running SQL Adaptive Server Anywhere v 6.0.
I can retrieve a list of the tables in ISQL using the following command: Select * from sys.syscatalog
The output shows all the tables and, among other info, whether there is a primary key defined (yes/no) but what I would like is to dump not only a listing of all tables but also the field in each table that is a primary/foreign key and, if possible, the relationship each table has with all other tables.
Is this possible?? Am I making any sense whatsoever?
Basically I'm creating Crystal Report Writer reports and need to know the table relationships in my database. The problem is that this database has approximately 500 tables with thousands of fields.
Many TIAs for any help, suggestions, or even a "HUH???"
Mark
I hope this is the right forum to ask this question. If not, please direct me to the proper one.
I have a SQL database and would like to have a listing of all the tables in this database as well as the linking relationships of the tables.
I'm running SQL Adaptive Server Anywhere v 6.0.
I can retrieve a list of the tables in ISQL using the following command: Select * from sys.syscatalog
The output shows all the tables and, among other info, whether there is a primary key defined (yes/no) but what I would like is to dump not only a listing of all tables but also the field in each table that is a primary/foreign key and, if possible, the relationship each table has with all other tables.
Is this possible?? Am I making any sense whatsoever?
Basically I'm creating Crystal Report Writer reports and need to know the table relationships in my database. The problem is that this database has approximately 500 tables with thousands of fields.
Many TIAs for any help, suggestions, or even a "HUH???"
Mark