Unfortunately, there is currently no designer support (unlike SQL Server 2005) for building table relationships in SQL Server CE. To build relationships, you need to use SQL commands, for example:
ALTER TABLE Orders ADD CONSTRAINT FK_Customer_Order FOREIGN KEY (CustomerId) REFERENCES Customers(CustomerId)
If you are developing CE, I would recommend this FAQ:
EDIT . In Visual Studio 2008, this can now be done in the graphical interface by right-clicking on your table.
Espo Sep 05 '08 at 20:29 2008-09-05 20:29
source share