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.

<strong>Data</strong><strong>Server</strong> connection management<br />

Connection pooling<br />

When an ABL session is established, the <strong>Data</strong><strong>Server</strong> <strong>for</strong> <strong>Microsoft</strong> <strong>SQL</strong> <strong>Server</strong> opens<br />

the number of read-only connections specified in the PRGRS_CACHE_CONN value. The<br />

<strong>Data</strong><strong>Server</strong> maintains these connections <strong>for</strong> the duration of an ABL session, reusing<br />

them <strong>for</strong> subsequent queries.<br />

Enabling connection management<br />

<strong>Data</strong><strong>Server</strong> connection management is enabled and tuned with the<br />

PRGRS_CACHE_CONN option to the -Dsrv connection parameter. Connection<br />

management is enabled by default, and the default number of managed connections is<br />

5. Change the number of connections using the following syntax:<br />

Syntax<br />

-Dsrv PRGRS_CACHE_CONN,n<br />

Where n is the number of managed connections.<br />

Disabling connection management<br />

<strong>Data</strong><strong>Server</strong> connection management is disabled by setting the number of managed<br />

connections to zero, as shown:<br />

-Dsrv PRGRS_CACHE_CONN,0<br />

Connections exclusively <strong>for</strong> stored procedures<br />

When <strong>Data</strong><strong>Server</strong> connection management is enabled, connections <strong>for</strong> stored<br />

procedures are allocated from the managed connections. If your stored procedures<br />

modify the connection environment or attributes, allocate a set of managed<br />

connections exclusively <strong>for</strong> stored procedures to prevent the modified connections<br />

from being reallocated <strong>for</strong> general use.<br />

Allocate managed connections exclusively <strong>for</strong> stored procedures with the following<br />

syntax:<br />

Syntax<br />

-Dsrv PRGRS_SP_CACHE_CONN,n<br />

Where n is the number of managed connections allocated to stored procedures. Set n<br />

to a value large enough to handle the largest number of stored procedures you can run<br />

simultaneously. If you exceed n, the connection will be allocated from the ODBC<br />

connection pool, if enabled, making the modified connection available <strong>for</strong> general<br />

reuse.<br />

Note: This switch is off by default, and is only needed <strong>for</strong> applications that modify the<br />

connection environment or attributes within stored procedures.<br />

<strong>OpenEdge</strong> <strong>Data</strong> <strong>Management</strong>: <strong>Data</strong><strong>Server</strong> <strong>for</strong> <strong>Microsoft</strong> <strong>SQL</strong> <strong>Server</strong> 163

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

Saved successfully!

Ooh no, something went wrong!