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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong> logic<br />

The flow chart in Figure 2 illustrates the <strong>Data</strong><strong>Server</strong>’s internal logic.<br />

1<br />

The user runs an <strong>OpenEdge</strong><br />

or WebSpeed application .<br />

2<br />

FOR EACH customer:<br />

DISPLAY name.<br />

END.<br />

The <strong>Data</strong><strong>Server</strong><br />

translates a statement<br />

into <strong>SQL</strong>.<br />

SELECT name<br />

FROM customer.<br />

3<br />

The data source manager<br />

receives the <strong>SQL</strong> statements<br />

from the <strong>Data</strong><strong>Server</strong> .<br />

SELECT name<br />

FROM customer.<br />

Figure 2: <strong>Data</strong><strong>Server</strong> logic<br />

ODBC API<br />

<strong>Data</strong><strong>Server</strong> components<br />

5<br />

The client displays the<br />

returned results .<br />

Name<br />

_______________<br />

Second Skin Scuba<br />

Match Point Tennis<br />

Off The Wall<br />

Pedal Power Cycles<br />

The data source manager<br />

compiles the request and<br />

returns the results to the<br />

client.<br />

"Second Skin Scuba"<br />

"Match Point Tennis"<br />

"Off The Wall"<br />

"Pedal Power Cycles"<br />

As shown in Figure 2, when you execute an application that accesses a MS <strong>SQL</strong><br />

<strong>Server</strong> database, the compiler translates ABL or SpeedScript statements into their <strong>SQL</strong><br />

equivalents. The <strong>Data</strong><strong>Server</strong> then issues the <strong>SQL</strong> statements to the ODBC driver<br />

through the ODBC API. The driver, which provides the software mechanisms <strong>for</strong><br />

accessing and controlling the data source, processes the <strong>SQL</strong> statements, transfers<br />

them to the data source manager, and returns the results to <strong>OpenEdge</strong> through the<br />

ODBC API.<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> 39<br />

4

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

Saved successfully!

Ooh no, something went wrong!