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

3. Select the table <strong>for</strong> which you are defining a primary key constraint definition and<br />

click Create Constraints. The Create Foreign Constraint Definitions <strong>for</strong><br />

tablename dialog box appears, as shown in Figure 16.<br />

Figure 16: Create Foreign Constraint Definitions <strong>for</strong> tablename dialog<br />

box<br />

4. Accept the default constraint definition name, or enter a new one.<br />

5. Select an index <strong>for</strong> the primary key constraint definition. Only indexes with an I in<br />

the All Columns Mandatory column are recommended <strong>for</strong> the primary key<br />

constraint definition. As long a column is unique, you can select as the primary<br />

constraint. Note, however, that the columns designated as the primary constraint<br />

are migrated as NOT NULL capable. That is, if you store many records in your<br />

<strong>OpenEdge</strong> database with the unknown value, they cannot be migrated to the<br />

<strong>for</strong>eign data source, given the defined primary constraint on that server object.<br />

6. By default, the primary key constraint definition has the Active check box<br />

selected. Leave this box selected if you want the constraint definition you are<br />

defining to be available <strong>for</strong> migration.<br />

7. For the <strong>Data</strong><strong>Server</strong> <strong>for</strong> MS <strong>SQL</strong> <strong>Server</strong>, if no clustered index constraint definition<br />

is currently defined, the Clustered check box is selected. Leave selected if you<br />

want the clustered index constraint definition to also be applied to the index you<br />

are selecting <strong>for</strong> the primary key constraint definition.<br />

Note: Progress Software Corporation recommends defining primary and<br />

clustered constraint definitions <strong>for</strong> the same index whenever possible.<br />

8. Optionally, add a description of the constraint definition in the Description box.<br />

9. Click OK to save the constraint definition and exit the dialog box.<br />

10. Click Create to save the constraint definition and remain in the dialog box and<br />

continue defining constraint definitions <strong>for</strong> the selected table.<br />

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