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.

Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 CURSOR_TYPE= Data Set Option 295See AlsoTo assign this option to a group of relational DBMS tables or views, see the“COMMAND_TIMEOUT= LIBNAME Option” on page 107.CURSOR_TYPE= Data Set OptionSpecifies the cursor type <strong>for</strong> read only and updatable cursors.Default value: LIBNAME settingValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: DB2 under UNIX and PC Hosts, Microsoft SQL Server, ODBC, OLE DBSyntaxCURSOR_TYPE=DYNAMIC | FORWARD_ONLY | KEYSET_DRIVEN | STATICSyntax DescriptionDYNAMICspecifies that the cursor reflects all changes that are made to the rows in a result setas you move the cursor. The data values and the membership of rows in the cursorcan change dynamically on each fetch. This is the default <strong>for</strong> the DB2 under UNIXand PC Hosts, Microsoft SQL Server, and ODBC interfaces. For OLE DB details, see“Details.”FORWARD_ONLY [not valid <strong>for</strong> OLE DB]specifies that the cursor functions like a DYNAMIC cursor except that it supportsonly sequential fetching of rows.KEYSET_DRIVENspecifies that the cursor determines which rows belong to the result set when thecursor is opened. However, changes that are made to these rows are reflected as youmove the cursor.STATICspecifies that the cursor builds the complete result set when the cursor is opened. Nochanges made to the rows in the result set after the cursor is opened are reflected inthe cursor. Static cursors are read-only.DetailsNot all drivers support all cursor types. An error is returned if the specified cursor typeis not supported. The driver is allowed to modify the default without an error. See yourdatabase documentation <strong>for</strong> more in<strong>for</strong>mation.When no options have been set yet, here are the initial DBMS-specific defaults.DB2 <strong>for</strong> UNIX and PC Microsoft SQL Server ODBC OLE DBKEYSET_DRIVEN DYNAMIC FORWARD_ONLY FORWARD_ONLY

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

Saved successfully!

Ooh no, something went wrong!