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.

Chapter 7: The <strong>Data</strong><strong>Server</strong> Tutorial<br />

Constraint definitions first defined in your <strong>for</strong>eign data source can be added to your<br />

<strong>OpenEdge</strong> schema holder during a schema pull, but are read only. To extract the<br />

read-only constraints into your <strong>OpenEdge</strong> database <strong>for</strong> reusing on subsequent<br />

migrations, use the Generating Constraints from ROWID option. See the<br />

“Generating constraint definitions from ROWID” section on page 290 <strong>for</strong> in<strong>for</strong>mation on<br />

generating constraint definitions from ROWID.<br />

Running the <strong>OpenEdge</strong> DB to MS <strong>SQL</strong> <strong>Server</strong> utility<br />

The <strong>OpenEdge</strong> DB to MS <strong>SQL</strong> <strong>Server</strong> utility runs in Windows with a <strong>Data</strong><strong>Server</strong><br />

accessing MS <strong>SQL</strong> <strong>Server</strong> through an ODBC driver.<br />

You can run the utility interactively from Windows or UNIX, or in batch mode.<br />

To run the <strong>OpenEdge</strong> DB to MS <strong>SQL</strong> <strong>Server</strong> utility interactively:<br />

1. Create a target MS <strong>SQL</strong> <strong>Server</strong>. You must use an empty target data source when<br />

you run the <strong>OpenEdge</strong> DB to MS <strong>SQL</strong> <strong>Server</strong> utility.<br />

2. Configure your ODBC driver to connect to your new target data source.<br />

3. Start the <strong>OpenEdge</strong> client and connect to the <strong>OpenEdge</strong> database that you want<br />

to migrate to the target data source.<br />

Note: For a DBE (double-byte enabled) <strong>Data</strong><strong>Server</strong> application, you must specify<br />

the Internal Code Page (-cpinternal) and Stream Code Page<br />

(-cpstream) parameters when you start the <strong>OpenEdge</strong> client. The values<br />

that you specify <strong>for</strong> these parameters must match the code page that the<br />

target data source uses.<br />

4. From the <strong>Data</strong> Administration, choose <strong>Data</strong><strong>Server</strong>→ MS <strong>SQL</strong> <strong>Server</strong><br />

Utilities→ Schema Migration Tools→ <strong>OpenEdge</strong> DB to MS <strong>SQL</strong> <strong>Server</strong>. The<br />

following screen appears:<br />

Figure 24: <strong>OpenEdge</strong> to MS <strong>SQL</strong> <strong>Server</strong> Conversion dialog box<br />

294 <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>

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

Saved successfully!

Ooh no, something went wrong!