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.

The LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 SCHEMA= LIBNAME Option 181SCHEMA= LIBNAME OptionAllows reading of such database objects as tables and views in the specified schema.Default value:Valid in:DBMS-specific<strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, DB2 under z/OS,Greenplum, HP Neoview, In<strong>for</strong>mix, Microsoft SQL Server, Netezza, ODBC, OLE DB,Oracle, Sybase, Sybase IQ, TeradataSyntaxSCHEMA=schema-nameSyntax Descriptionschema-namespecifies the name that is assigned to a logical classification of objects in a relationaldatabase.DetailsFor this option to work, you must have appropriate privileges to the schema that isspecified.If you do not specify this option, you connect to the default schema <strong>for</strong> your DBMS.The values <strong>for</strong> SCHEMA= are usually case sensitive, so use care when you specifythis option.Aster nCluster: The default is none, which uses the database user’s default schema.However, the user name is used instead when the user’s default scheme is the username—<strong>for</strong> example, when SQLTables is called to get a table listing using PROCDATASETS or <strong>SAS</strong> Explorer.Oracle: Specify a schema name to be used when referring to database objects. <strong>SAS</strong>can access another user’s database objects by using a specified schema name. IfPRESERVE_TAB_NAMES=NO, <strong>SAS</strong> converts the SCHEMA= value to uppercasebecause all values in the Oracle data dictionary are uppercase unless quoted.Sybase: You cannot use the SCHEMA= option when you useUPDATE_LOCK_TYPE=PAGE to update a table.Teradata: If you omit this option, a libref points to your default Teradata database,which often has the same name as your user name. You can use this option to point toa different database. This option lets you view or modify a different user’s DBMS tablesor views if you have the required Teradata privileges. (For example, to read anotheruser’s tables, you must have the Teradata privilege SELECT <strong>for</strong> that user’s tables.) Formore in<strong>for</strong>mation about changing the default database, see the DATABASE statementin your Teradata documentation.

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

Saved successfully!

Ooh no, something went wrong!