Walkthrough: Creating a SQL Server Compact 3.5 Database
To create a relationship between the tables created in the previous procedure
- In Server Explorer/Database Explorer, expand Tables.
- Right-click the Orders table and then click Table Properties.
- Click Add Relations.
- Type FK_Orders_Customers in the Relation Name box.
- Select CustomerID in the Foreign Key Table Column list.
- Click Add Columns.
- Click Add Relation.
- Click OK to complete the process and create the relationship in the
database.
- Click OK again to close the Table Properties dialog box.