13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

694 Special Catalog Queries 4 Chapter 24OLEDB::TABLE_PRIVILEGES()returns the privileges on tables that are defined in the catalog that a given usergrants or can access.OLEDB::TABLES()returns the tables defined in the catalog that a given user grants and can access.OLEDB::TRANSLATIONS()returns the character translations that are defined in the catalog and that areaccessible to a given user.OLEDB::USAGE_PRIVILEGES()returns the USAGE privileges on objects that are defined in the catalog and that agiven user grants or can access.OLEDB::VIEW_COLUMN_USAGE()returns the columns on which viewed tables depend that are defined in the catalogand that a given user owns.OLEDB::VIEW_TABLE_USAGE()returns the tables on which viewed tables depend that are defined in the catalogand that a given user owns.OLEDB::VIEWS()returns the viewed tables that are defined in the catalog and that a given user canaccess.For a complete description of each rowset and the columns that are defined in eachrowset, see the Microsoft OLE DB Programmer’s <strong>Reference</strong>.Examples of Special OLE DB QueriesThe following example retrieves a rowset that displays all tables that the HRDEPTschema accesses:proc sql;connect to oledb(provider=sqloledb properties=("User ID"=testuserPassword=testpass"Data Source"=’dwtsrv1’));select * from connection to oledb(OLEDB::TABLES(,"HRDEPT"));quit;It uses the special query OLEDB::PROVIDER_INFO() to produce this output:proc sql;connect to oledb(provider=msdaora properties=("User ID"=testuserPassword=testpass"Data Source"="Oraserver"));select * from connection to oledb(OLEDB::PROVIDER_INFO());quit;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!