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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to OLE DB 4 Locking in the OLE DB Interface 6993 read isolation level (READ_ISOLATION_LEVEL=, if specified)3 update isolation level (UPDATE_ISOLATION_LEVEL=, if specified)3 all properties (PROPERTIES=)3 prompt (PROMPT=, must not be specified)For more in<strong>for</strong>mation about when and how <strong>SAS</strong>/<strong>ACCESS</strong> passes joins to the DBMS,see “Passing Joins to the DBMS” on page 43S.Bulk Loading <strong>for</strong> OLE DBThe BULKLOAD= LIBNAME option calls the SQLOLEDB interface ofIRowsetFastLoad so that you can efficiently insert rows of data into a Microsoft SQLServer database table as a unit. BCP= is an alias <strong>for</strong> this option.Note: This functionality is available only when accessing Microsoft SQL Server dataon Windows plat<strong>for</strong>ms using Microsoft SQL Server Version 7.0 or later. 4As <strong>SAS</strong>/<strong>ACCESS</strong> sends rows of data to the bulk-load facility, the data is written to aninput buffer. When you have sent all rows or when the buffer reaches a certain size(DBCOMMIT= determines this), all rows are inserted as a unit into the table and thedata is committed to the table. You can also set DBCOMMIT= to commit rows after aspecified number of rows are inserted.If an error occurs, a message is written to the <strong>SAS</strong> log, and any rows that wereinserted be<strong>for</strong>e the error are rolled back.If you specify BULKLOAD=YES and the PROVIDER= option is set, <strong>SAS</strong>/<strong>ACCESS</strong>Interface to OLE DB uses the specified provider. If you specify BULKLOAD=YES andPROVIDER= is not set, the engine uses the PROVIDER=SQLOLEDB value.If you specify BULKLOAD=YES, connections that are made through OLE DBServices or UDL files are not allowed.Locking in the OLE DB InterfaceThe following LIBNAME and data set options let you control how the OLE DBinterface handles locking. For general in<strong>for</strong>mation about an option, see “LIBNAMEOptions <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 92.READ_LOCK_TYPE= ROW | NOLOCKUPDATE_LOCK_TYPE= ROW | NOLOCKREAD_ISOLATION_LEVEL= S | RR | RC | RUThe data provider sets the default value. OLE DB supports the S, RR, RC, and RUisolation levels that are defined in this table.Table 24.3Isolation Levels <strong>for</strong> OLE DBIsolation LevelS (serializable)RR (repeatable read)DefinitionDoes not allow dirty reads, nonrepeatable reads, orphantom reads.Does not allow dirty reads or nonrepeatable reads; doesallow phantom reads.

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

Saved successfully!

Ooh no, something went wrong!