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
Cisco 2950 Vlan for Voice
windows 2008 64 server
get-wmiobject error - Powershell
Multiple Stored Procedures in a single transaction
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
HTC Touch 3G: How can I really upgrade WM6.1 to WM6.5 and/or porting to latest Android?
simple VB file download example
end tag for "head" which is not finished
How to disable Security Alert box in windows 7?
Install crashes Office 2007 Pro on Windows 2003 SP2 server