开发者

How to get table schema from Progress database via odbc

开发者 https://www.devze.com 2022-12-26 01:37 出处:网络
I have a linked server set up between sql 2008 and a Progress OpenEdge 10.1b server. How do I get the table sc开发者_运维知识库hemas?You can get all available tables:

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

How do I get the table sc开发者_运维知识库hemas?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号