I have a linked server set up between sql 2008 and a Progress OpenEdge 10.1b server.
How do I get the table schemas?
Returns schema information for the data source of this OdbcConnection. A DataTable that contains schema information. Returns schema information for the data source of this OdbcConnection using the specified name for the schema name. Specifies the name of the schema to return.
System. Data. Odbc Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here. Returns schema information for the data source of this OdbcConnection.
All restrictions that apply to the SQLStatistics method also apply to the ODBCConnection.GetSchema ("indexes") collection. Returns schema information for the data source of this OdbcConnection using the specified string for the schema name and the specified string array for the restriction values.
This is the existing _db metaschema table for databases. Added to the table is a new field for a globally unique identifier (GUID) to uniquely identify a database and support the aggregation of audit data from multiple databases or sources.
You can get all available tables:
select * from sysprogress.SYSTABLES;
or
select * from sysprogress.SYSTABLES_FULL;
You can get all columns of specified table:
select * from sysprogress.SYSCOLUMNS where TBL = 'table_name';
or
select * from sysprogress.SYSCOLUMNS_FULL where TBL = 'table_name';
It works only with DBA privileged user.
More detail in OpenEdge Product Documentation: https://community.progress.com/community_groups/openedge_general/w/openedgegeneral/1329.openedge-product-documentation-overview
Document title: SQL Reference
Chapter: OpenEdge SQL System Catalog Tables
You can do a statement like
SELECT * FROM LinkedProgressOpenedgeServer.YourDatabase.Owner.TableName WHERE 1=2
That should return just the schema without any data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With