OpenEdge Data Management: DataServer for Microsoft SQL Server
OpenEdge Data Management: DataServer for Microsoft SQL Server
OpenEdge Data Management: DataServer for Microsoft SQL Server
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Contents<br />
Values of output parameters defined when creating a procedure. . . . . . 3–13<br />
Results retrieved from a database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–13<br />
Loading results into a temp-table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–14<br />
Interfacing with RDBMS stored procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–15<br />
Retrieving return codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–15<br />
Retrieving output parameter values . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–16<br />
Retrieving result sets using proc-text-buffer . . . . . . . . . . . . . . . . . . . . . . 3–16<br />
Defining a view to use as a buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–18<br />
Loading result sets into temp-tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–21<br />
Handling errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–30<br />
Trapping errors when using Load-Result-Into. . . . . . . . . . . . . . . . . . . . . 3–30<br />
Error messages related to using the Load-Result-Into phrase . . . . . . . . 3–30<br />
ROWID Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–32<br />
Understanding the ROWID implementation . . . . . . . . . . . . . . . . . . . . . . 3–32<br />
ROWID characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–32<br />
Using ROWID with RUN STORED-PROCEDURE<br />
and LOAD-RESULT-INTO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–34<br />
Additional Pro<strong>Data</strong>Set support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–36<br />
4. Additional Features to Enhance <strong>Data</strong><strong>Server</strong> Per<strong>for</strong>mance . . . . . . . . . . . . . . . 4–1<br />
Enhancements overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2<br />
Connection pooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2<br />
Main components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2<br />
ODBC Connection Pooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–3<br />
<strong>Data</strong><strong>Server</strong> connection management . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–4<br />
Firehose and Fast Forward-Only Cursors . . . . . . . . . . . . . . . . . . . . . . . 4–5<br />
Monitoring cursor and connection use . . . . . . . . . . . . . . . . . . . . . . . . . . 4–6<br />
<strong>OpenEdge</strong> query types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–8<br />
Query tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–9<br />
Caching records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–13<br />
Join by <strong>SQL</strong>DB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–14<br />
Writing queries <strong>for</strong> per<strong>for</strong>mance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–16<br />
Modifying the run-time schema check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–17<br />
Skip schema verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–17<br />
Replacing FIND FIRST <strong>for</strong> per<strong>for</strong>mance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–18<br />
5. Configuring the <strong>Data</strong><strong>Server</strong>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–1<br />
<strong>Data</strong><strong>Server</strong> components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–2<br />
<strong>Data</strong><strong>Server</strong> configuration prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . 5–2<br />
Configuring an ODBC driver and registering the data source . . . . . . . . . . . . . . . . 5–4<br />
Configuring the ODBC driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–4<br />
Registering your data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–4<br />
Configuring a local <strong>Data</strong><strong>Server</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–5<br />
Configuring a remote <strong>Data</strong><strong>Server</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–6<br />
Configuring with the <strong>OpenEdge</strong> Explorer and Progress Explorer . . . . . . 5–6<br />
Configuring from the command line . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–9<br />
Creating a schema holder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–15<br />
Be<strong>for</strong>e you begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–15<br />
Permission requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–15<br />
Preparing to create the schema holder . . . . . . . . . . . . . . . . . . . . . . . . . . 5–16<br />
Creating a new empty <strong>OpenEdge</strong> database . . . . . . . . . . . . . . . . . . . . . 5–17<br />
Creating a schema holder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–18<br />
Maintaining a schema holder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–22<br />
Updating a deployed schema holder. . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–22<br />
Typical configuration <strong>for</strong> a remote client to connect to a remote <strong>Data</strong><strong>Server</strong> . . . . 5–23<br />
Configuring an ODBC data source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–23<br />
Contents–3