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.

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

To harness the per<strong>for</strong>mance benefits of wise ROWID choices, you must import back<br />

primary and clustered key constraint definitions from your current schema holder into<br />

your original <strong>OpenEdge</strong> database in the <strong>for</strong>m of constraint definitions. The wise<br />

ROWID choices are derived either from one of the previous ROWID designations from<br />

previous migrations or from pull exercises, which also designate a primary or clustered<br />

key index.<br />

The per<strong>for</strong>mance benefits are accomplished by using the Generate constraints <strong>for</strong><br />

ROWID option. Once the constraint definitions are back into the original <strong>OpenEdge</strong><br />

database, they can be used <strong>for</strong> remigration to the server by using the Migrate<br />

Constraints option in the Advanced Options migration box. By doing so, the<br />

accumulation of designated primary and clustered indexes are repeated in the<br />

remigration, as constraint definitions always take priority over other ROWID<br />

designation options. Wherever the primary and clustered constraint definitions are<br />

found during the remigration, they are used to designate ROWID.<br />

To generate constraint definitions from ROWID:<br />

1. Start <strong>Data</strong> Administration and connect to the <strong>OpenEdge</strong> database you are<br />

migrating.<br />

2. Choose <strong>Data</strong><strong>Server</strong>→ MS <strong>SQL</strong> <strong>Server</strong> Utilities→ <strong>Server</strong> Attributes→<br />

Generate Constraints from ROWID. The following dialog box appears, as shown<br />

in Figure 23:<br />

Figure 23: Generate Constraints from ROWID dialog box<br />

3. Specify your <strong>OpenEdge</strong> database name.<br />

4. If you want to override any existing constraint definitions, check Overwrite<br />

existing constraint definitions.<br />

5. Click OK to generate primary and mock clustered index constraint definitions from<br />

designated ROWID wherever primary and mock clustered index constraint<br />

definitions do not exist (or overwrites existing constraint definitions).<br />

In this scenario, your original <strong>OpenEdge</strong> database is populated with primary and<br />

clustered constraint definitions based on the ROWID designations of the current<br />

schema image. The selecting the overwrite option indicates that it is permissible to<br />

replace existing constraint definitions with the definition derived in the schema holder.<br />

After choosing to generate the constraint definitions based on ROWID, you can then<br />

consider a re-migrating to get the primary and clustered indexes constructed in the<br />

<strong>for</strong>eign schema by setting on the Migrate Constraints option on the re-migration,<br />

noting that you may need to clear existing ROWID designations in order to assign new<br />

ones.<br />

292 <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!