show select * from imd.budget_element;
However, when you issue the command using PROC SQL pass-through,it only returns the one DDL." />
Problem Note 30849: The Teradata SHOW command does not return all of the table or view structure on which a view is dependent
In the Teradata database, issuing the following SHOW command from Basic Teradata Query (BTEQ) software returns all of the table or view structure on which this view is dependent:
show select * from imd.budget_element;
However, when you issue the same command through the SQL procedure's Pass-Through facility, as shown in the next example, Teradata only returns one dynamic data library (DDL).
proc sql;
connect to teradata (user=user-name password=password tdpid=tddev);
select * from connection to teradata
(show select * from imd.budget_element);
run;
Teradata returns the first part (via the Teradata CREATE MULTISET command) in a separate parcel, followed by the second part (via the REPLACE VIEW command) in a separate parcel. The Teradata engine in SAS/ACCESS® Interface to Teradata currently examines only the first parcel. As a result, only the first parcel is displayed.
The workaround for this problem is to issue a separate SHOW VIEW command if the requested object is a view, as shown in the following example.
proc sql;
connect to teradata (user=trdnt password=password tdpid=dbc);
select * from connection to teradata
(show select * from imd.budget_element);
select * from connection to teradata (show view imd.budget_element);
quit;
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to Teradata | z/OS | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
| Windows Vista | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
| HP-UX IPF | 9.1 TS1M3 SP4 | |
| Linux | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In Teradata, issuing the following SHOW command from BTEQ returns all of the table or view structure on which this view is dependent:
show select * from imd.budget_element;
However, when you issue the command using PROC SQL pass-through,it only returns the one DDL.
| Type: | Problem Note |
| Priority: | low |
| Topic: | Data Management ==> Data Sources ==> External Databases ==> Teradata
|
| Date Modified: | 2009-06-19 13:57:25 |
| Date Created: | 2007-12-27 14:07:55 |