How to get table schema from Progress database via odbc
Asked Answered
B

3

11

I have a linked server set up between sql 2008 and a Progress OpenEdge 10.1b server.

How do I get the table schemas?

Boxwood answered 9/4, 2010 at 18:49 Comment(0)
I
26

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

Innovate answered 1/2, 2011 at 14:13 Comment(0)
G
2

You can do a statement like

SELECT * FROM LinkedProgressOpenedgeServer.YourDatabase.Owner.TableName WHERE 1=2

That should return just the schema without any data.

Gamal answered 9/4, 2010 at 18:58 Comment(0)
T
-1

Normally the default schema name is PUB. You can try using PUB schema.

Tanning answered 1/6, 2016 at 13:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.