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.

Use the PRGRS_CONNECT parameter in the following cases:<br />

Connecting a schema holder<br />

• To establish complex connections that require more than the Physical <strong>Data</strong>base Name<br />

(-db), User ID (-U), and Password (-P) parameters, as follows:<br />

CONNECT datasrc-name -ld logical-datasrc-name -dt MSS<br />

-Dsrv<br />

PRGRS_CO,DSN=datasrc-name;server=servername;UID=name;PWD=password;.<br />

For datasrc–name, supply the name of the MS <strong>SQL</strong> <strong>Server</strong> database. <strong>Server</strong> is a<br />

driver-specific keyword. The -Dsrv connection string is passed directly to the data source.<br />

The <strong>Data</strong><strong>Server</strong> does not modify this value.<br />

• To connect to a MS <strong>SQL</strong> <strong>Server</strong> database whose name has a blank space, which is not<br />

allowed by <strong>OpenEdge</strong>, substitute the characters &^ <strong>for</strong> the illegal characters in the data<br />

source name. <strong>OpenEdge</strong> ignores datasrc–name when you use PRGRS_CONNECT; however,<br />

you must supply it to pass syntax validation. Supply the name as part of the connection<br />

string <strong>for</strong> PRGRS_CONNECT, as follows:<br />

CONNECT datasrc-name -ld logical-database-name -dt MSS<br />

-Dsrv PRGRS_CO,data-&^source&^name;.<br />

• To connect to the MS <strong>SQL</strong> <strong>Server</strong> database using the ODBC driver as a guide, specify an<br />

empty PRGRS_CONNECT, which tells the ODBC driver to handle the entire connection<br />

process interactively. For example:<br />

CONNECT datasrc-name -ld logical-name -dt MSS<br />

-Dsrv PRGRS_CO,;.<br />

To simplify your PRGRS_CONNECT string, you can specify a File DSN. When you configure<br />

access to your MS <strong>SQL</strong> <strong>Server</strong> database, specify a File DSN and then reference that file in your<br />

connect string. For example:<br />

CONNECT datasrc-name -ld logical-name -dt MSS<br />

-Dsrv PRGRS_CO,FILEDSN=dsn-filename;.<br />

Binding with connection and startup parameters<br />

Binding settings determine how data is pulled from the data source by the <strong>Data</strong><strong>Server</strong>. When<br />

binding is turned on, query results are copied directly into the <strong>Data</strong><strong>Server</strong>’s memory,<br />

eliminating the need to do post-query calls to retrieve the data. When binding is not enabled,<br />

queries run independent of the data retrieval, and subsequent calls to the data source are required<br />

to retrieve the data.<br />

6–15

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

Saved successfully!

Ooh no, something went wrong!