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
Scanstyles does nothing in Webkit/Firefox
Call a WCF Service from VBScript
Stand-Alone Terminal Server
Importing a text file into Access
Error Code 10061: Connection refused after replacing certificates
netapp change active directory domain
Iphone Can't get Exchange mail on LAN but ok on 3G.
how long will deleted table hold values
Word background image problem
Is there a funtion that if I use substr(col,1,1) will tell me where a value is not a character