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
SSRS Bar Chart
Setting up WatchGuard's XTM Series 2
VPN 721 error
Add printer batch network share with space
Windows 2003 R2 and WSS 3
how to replace all any chr(10)/chr(13) _not_ within html tags with a <br>
How to stop Sysinternals Virus browser redirect?
Calculating the date.
can't get iPhone to connect to Exchange 2010 from outside...
How to generate an HTML file if I've got the HTML body?