SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 30567: Using the SQL Pass-Through facility in the SAS® System to find the schema name for a Teradata table

DetailsCodeAboutRate It

Teradata tables might not be listed in the SAS Explorer library even after a libref is successfully assigned. This problem can be resolved by adding the SCHEMA= option in the LIBNAME statement, as shown in the following example:

libname tera teradata user=teradata-username 
                      password=teradata-password 
                      schema=teradata-schema; 

The schema is another name for the owner. If you are not sure what to use for schema, you can find the schema name by submitting the following SQL procedure. In this code, DBC is the name of the database.

proc sql; 
   connect to Teradata(user=teradata_username password=teradata_password);
   create table list_tab as 
          select * from connection to Teradata(select Creatorname, 
                                               tablename from dbc.tablesx); 
quit; 

The SAS data set LIST_TAB then lists the Teradata tables with their associated schema names.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to TeradataMicrosoft® Windows® for x649.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP4
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP4
Microsoft Windows XP Professional9.1 TS1M3 SP4
Windows Vista9.1 TS1M3 SP4
64-bit Enabled AIX9.1 TS1M3 SP4
64-bit Enabled HP-UX9.1 TS1M3 SP4
64-bit Enabled Solaris9.1 TS1M3 SP4
HP-UX IPF9.1 TS1M3 SP4
Linux9.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.