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.

Managing server attributes<br />

If the primary constraint definition is incorrectly defined, a message is displayed<br />

and the constraint definition is not created.<br />

The system fails to generate a constraint definition when an index is not defined<br />

as unique by the presence of either an <strong>OpenEdge</strong> unique attribute (indicated by<br />

an I) or by a unique constraint definition (indicated by a C) in the Unique column.<br />

Defining a unique key constraint definition<br />

The following procedure describes how to define a unique key constraint definition.<br />

Alternately, you can define unique constraint definitions during migration.<br />

To define a unique key constraint definition:<br />

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

migrating.<br />

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

View/Maintain Foreign Constraints. The View/Maintain Foreign Constraint<br />

Definitions dialog box appears.<br />

3. Select the table <strong>for</strong> which you are defining a unique 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 />

4. Select UNIQUE from Constraint Type. The appearance of the Create Foreign<br />

Constraint Definitions <strong>for</strong> tablename <strong>for</strong> a unique key dialog box, appears as<br />

shown in Figure 17.<br />

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

box <strong>for</strong> unique constraint definitions<br />

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

6. Select an index <strong>for</strong> the unique key constraint definition.<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> 283

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

Saved successfully!

Ooh no, something went wrong!