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.

Value pairs within the connect string are delimited by a semicolon (;).<br />

Note: PRGRS_CO is a valid abbreviation <strong>for</strong> PRGRS_CONNECT.<br />

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<br />

Name (-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<br />

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

data source. 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<br />

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

in the data source name. <strong>OpenEdge</strong> ignores datasrc–name when you use<br />

PRGRS_CONNECT; however, you must supply it to pass syntax validation. Supply the<br />

name as part of the connection 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,<br />

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

connection 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<br />

configure access to your MS <strong>SQL</strong> <strong>Server</strong> database, specify a File DSN and then<br />

reference that file in your connect string. For example:<br />

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

-Dsrv PRGRS_CO,FILEDSN=dsn-filename;.<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> 225

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

Saved successfully!

Ooh no, something went wrong!