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.

660 ODBC LIBNAME Statement Examples 4 Chapter 23OptionSTRINGDATES=TRACE=TRACEFILE=Default ValueNONOnoneUPDATE_ISOLATION_LEVEL= RC (see “Locking in the ODBC Interface” on page 676)UPDATE_LOCK_TYPE=UPDATE_MULT_ROWS=UPDATE_SQL=USE_ODBC_CL=UTILCONN_TRANSIENT=ROWNOdriver-specificNONOODBC LIBNAME Statement ExamplesIn the following example, USER=, PASSWORD=, and DATASRC= are connectionoptions.libname mydblib odbc user=testuser password=testpass datasrc=mydatasource;In this example, the libref MYLIB uses the ODBC engine to connect to an Oracledatabase. The connection options are USER=, PASSWORD=, and DATASRC=.libname mydblib odbc datasrc=orasrvr1 user=testuserpassword=testpass;proc print data=mydblib.customers;where state=’CA’;run;In the next example, the libref MYDBLIB uses the ODBC engine to connect to aMicrosoft SQL Server database. The connection option is NOPROMPT=.libname mydblib odbcnoprompt="uid=testuser;pwd=testpass;dsn=sqlservr;"stringdates=yes;proc print data=mydblib.customers;where state=’CA’;run;Data Set Options <strong>for</strong> ODBCAll <strong>SAS</strong>/<strong>ACCESS</strong> data set options in this table are supported <strong>for</strong> ODBC. Defaultvalues are provided where applicable. For general in<strong>for</strong>mation about this feature, see“Overview” on page 207.Table 23.2<strong>SAS</strong>/<strong>ACCESS</strong> Data Set OptionsOptionBULKLOAD=CURSOR_TYPE=Default ValueLIBNAME option settingLIBNAME option setting

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

Saved successfully!

Ooh no, something went wrong!