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.

142 DIRECT_EXE= LIBNAME Option 4 Chapter 10SyntaxDIMENSION=YES | NOSyntax DescriptionYESspecifies that the database creates dimension tables.NOspecifies that the database creates fact tables.DIRECT_EXE= LIBNAME OptionAllows an SQL delete statement to be passed directly to a DBMS with pass-through.Default value:Valid in:none<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, MySQL, Netezza, ODBC,OLE DB, Oracle, Sybase, Sybase IQ, TeradataSyntaxDIRECT_EXE=DELETESyntax DescriptionDELETEspecifies that an SQL delete statement is passed directly to the DBMS <strong>for</strong> processing.DetailsPer<strong>for</strong>mance improves significantly by using DIRECT_EXE=, because the SQL deletestatement is passed directly to the DBMS, instead of <strong>SAS</strong> reading the entire result setand deleting one row at a time.ExamplesThe following example demonstrates the use of DIRECT_EXE= to empty a table froma database.libname x oracle user=scott password=tigerpath=oraclev8 schema=dbitestdirect_exe=delete; /* Create an Oracle table of 5 rows. */data x.dbi_dft;

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

Saved successfully!

Ooh no, something went wrong!