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.

700 Accessing OLE DB <strong>for</strong> OLAP Data 4 Chapter 24Isolation LevelRC (read committed)RU (read uncommitted)DefinitionDoes not allow dirty reads or nonrepeatable reads; doesallow phantom reads.Allows dirty reads, nonrepeatable reads, and phantomreads.Here is how the terms in the table are defined.Dirty reads A transaction that exhibits this phenomenon has very minimalisolation from concurrent transactions. In fact, it can seechanges that are made by those concurrent transactions evenbe<strong>for</strong>e they commit.For example, suppose that transaction T1 per<strong>for</strong>ms anupdate on a row, transaction T2 then retrieves that row, andtransaction T1 then terminates with rollback. Transaction T2has then seen a row that no longer exists.NonrepeatablereadsIf a transaction exhibits this phenomenon, it is possible that itmight read a row once and if it attempts to read that row againlater in the course of the same transaction, the row might havebeen changed or even deleted by another concurrenttransaction. There<strong>for</strong>e, the read is not (necessarily) repeatable.For example, suppose that transaction T1 retrieves a row,transaction T2 then updates that row, and transaction T1 thenretrieves the same row again. Transaction T1 has now retrievedthe same row twice but has seen two different values <strong>for</strong> it.Phantom reads When a transaction exhibits this phenomenon, a set of rowsthat it reads once might be a different set of rows if thetransaction attempts to read them again.For example, suppose that transaction T1 retrieves the set ofall rows that satisfy some condition. Suppose that transactionT2 then inserts a new row that satisfies that same condition. Iftransaction T1 now repeats its retrieval request, it sees a rowthat did not previously exist, a phantom.UPDATE_ISOLATION_LEVEL= S | RR | RCThe default value is set by the data provider. OLE DB supports the S, RR, and RCisolation levels defined in the preceding table. The RU isolation level is notallowed with this option.Accessing OLE DB <strong>for</strong> OLAP DataOverview<strong>SAS</strong>/<strong>ACCESS</strong> Interface to OLE DB provides a facility <strong>for</strong> accessing OLE DB <strong>for</strong>OLAP data. You can specify a Multidimensional Expressions (MDX) statement throughthe SQL pass-through facility to access the data directly, or you can create an SQL viewof the data. If your MDX statement specifies a data set with more than five axes(COLUMNS, ROWS, PAGES, SECTIONS, and CHAPTERS), <strong>SAS</strong> returns an error. See

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

Saved successfully!

Ooh no, something went wrong!