如何使用 SAS 从特定数据库获取 Teradata 表的列表?
我正在尝试使用以下 proc sql 语句获取表:
proc sql;
Select tablename from dbc.tables;
run;
我已经定义了所需的 teradata 和 SQL Server 位置。我收到的错误是“文件 dbc.tables 不存在”
如果我在 Teradata SQL 助手中运行查询,它会起作用。只是我无法使用 SAS 做同样的事情。
I am trying to get the tables using the following proc sql statement:
proc sql;
Select tablename from dbc.tables;
run;
I have already defined the teradata and SQL server locations required. The error I get is "File dbc.tables does not exist"
If I run the query in Teradata SQL assistant, it works. Its just that I am unable to do the same using SAS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用
dictionary.tables
Try using
dictionary.tables
如果您不知道您的库引用,但您假设该库已分配,请尝试
如果这没有帮助,并且您正在使用企业指南,连接到元服务器,请单击
服务器
,您的服务器、Libraries
并确保设置了查看未分配库的按钮。If you don't know your library reference, but you assume the library is assigned, try
If that does not help and you are working in Enterprise Guide, connected to a metaserver, click on
Servers
, your server,Libraries
and make sure the button to see non-assigned libraries is set.