13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

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.

ODBC options<br />

Tuning your environment with the –Dsrv startup parameter<br />

The <strong>Data</strong><strong>Server</strong> allows access to selected options defined in the ODBC interface by providing<br />

corresponding options that you can use with the -Dsrv startup parameter. Each<br />

<strong>OpenEdge</strong>-supplied ODBC option has a name of the <strong>for</strong>m option–name and corresponds with<br />

a startup option in the ODBC interface having the name <strong>SQL</strong>_option–name. Table 8–1 lists the<br />

<strong>OpenEdge</strong>-supplied ODBC startup options and the corresponding startup options defined in the<br />

ODBC interface.<br />

Table 8–1: ODBC options<br />

<strong>OpenEdge</strong>-supplied option ODBC-defined option 1<br />

ACCESS_MODE <strong>SQL</strong>_ACCESS_MODE<br />

ASYNC_ENABLE <strong>SQL</strong>_ASYNC_ENABLE<br />

AUTOCOMMIT <strong>SQL</strong>_AUTOCOMMIT<br />

LOGIN_TIMEOUT <strong>SQL</strong>_LOGIN_TIMEOUT<br />

MAX_LENGTH <strong>SQL</strong>_MAX_LENGTH<br />

MAX_ROWS <strong>SQL</strong>_MAX_ROWS<br />

MSS_PRESERVE_CURS <strong>SQL</strong>_MSS_PRESERVE_CURS 2<br />

NOSCAN <strong>SQL</strong>_NOSCAN<br />

OPT_TRACE <strong>SQL</strong>_OPT_TRACE<br />

PACKET_SIZE <strong>SQL</strong>_PACKET_SIZE<br />

QUERY_TIMEOUT <strong>SQL</strong>_QUERY_TIMEOUT<br />

RESP_POLLCT <strong>SQL</strong>_RESP_POLLCT<br />

RESP_TIMEOUT <strong>SQL</strong>_RESP_TIMEOUT<br />

TXN_ISOLATION <strong>SQL</strong>_TXN_ISOLATION<br />

1. Refer to an ODBC application developer’s guide <strong>for</strong> in<strong>for</strong>mation on the ODBC-defined options.<br />

2. Cursor preservation allows server side cursors to be preserved beyond the transaction boundary. See the “Preserve<br />

cursors—the -Dsrv MSS_PRESERVE_CURS,1 option” section on page 8–10 <strong>for</strong> in<strong>for</strong>mation and warnings.<br />

When you specify an <strong>OpenEdge</strong>-supplied ODBC option with the -Dsrv startup parameter, the<br />

<strong>Data</strong><strong>Server</strong> sends the option to the ODBC driver <strong>for</strong> processing by the ODBC interface.<br />

The following example of the -Dsrv startup parameter tells the ODBC driver to return no more<br />

than 1,000 rows to the <strong>OpenEdge</strong> application:<br />

-Dsrv MAX_ROWS,1000<br />

Note: The <strong>Data</strong><strong>Server</strong> generally sets the correct value automatically. There<strong>for</strong>e, you should<br />

reserve use of the ODBC options <strong>for</strong> troubleshooting and fine-tuning purposes only.<br />

8–3

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

Saved successfully!

Ooh no, something went wrong!