Microsoft
Software
Hardware
Network
Question : Foreign key on same table
Hello Experts,
I have a table in my DB containing web-pages. The Primary Key is PageID. In the same table I have PageParentPageID. I can't add a FK between Pageparent and PageID. I need to ensure that the PageParentPageID exists in the table.
Sugestions please.
Best Regards
Tomas
Answer : Foreign key on same table
> I can't add a FK between Pageparent and PageID
why not? what is the error you get?
note that before you add that constraint, all values of PageParent must exist indeed in PageID ...
Random Solutions
VB6 to VS2010 - Training Advice ?
how to add decimal place in formula in seagate crystal report
Active Directory DNS records issue
Outlook 2007 can not open network saved Archive file
how many version of SQL Server on one machine
Error string in catch block?
PowerPoint 2007 Printing issues - shadows and text boxes
Access 2003/2007 background colour
How can I connect printer to a computer using another computer.
Microsoft Virtual Environment - SQL Server 2005/SQL Server 2008