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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to OLE DB 4 Passing <strong>SAS</strong> Functions to OLE DB 697proc print data=samples.inventory;run;The following example demonstrates the use of a temporary table using the SQLpass-through facility.proc sql;connect to oledb as test (provider=SQLOLEDB dsn=lupinssuid=dbitest pwd=dbigrp1);execute (create table #FRANCE (flight char(3), dates datetime,dest char(3))) by test;execute (insert #FRANCE select flight, dates, dest from internatwhere dest like ’%FRA%’) by test;select * from connection to test (select * from #FRANCE);quit;Passing <strong>SAS</strong> Functions to OLE DB<strong>SAS</strong>/<strong>ACCESS</strong> Interface to OLE DB passes the following <strong>SAS</strong> functions <strong>for</strong> OLE DBto DB2, Microsoft SQL Server, and Oracle <strong>for</strong> processing. Where the OLE DB functionname differs from the <strong>SAS</strong> function name, the OLE DB name appears in parentheses.For more in<strong>for</strong>mation, see “Passing Functions to the DBMS Using PROC SQL” on page42.DAYDTEXTDAYDTEXTMONTHDTEXTYEARDTEXTWEEKDAYHOURMINUTEMONTHSECONDWEEKDAYYEARSQL_FUNCTIONS= ALL allows <strong>for</strong> <strong>SAS</strong> functions that have slightly differentbehavior from corresponding database functions that are passed down to the database.Only when SQL_FUNCTIONS=ALL can the <strong>SAS</strong>/<strong>ACCESS</strong> engine also pass these <strong>SAS</strong>SQL functions to OLE DB. Due to incompatibility in date and time functions betweenOLE DB and <strong>SAS</strong>, OLE DB might not process them correctly. Check your results todetermine whether these functions are working as expected.ABSARCOS (ACOS)ARSIN (ASIN)ATANAVGBYTE

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

Saved successfully!

Ooh no, something went wrong!