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
Terminal Server Printing
DR solution for data warehouse
Silverlight 4 Async_ExceptionOccurred
How to Get Specific Button pressed in a repeater when using ModalPopupExtender
Email account got spoofed?
Create a list of users in Active Directory whose account has been locked out for 90 days
Training Path
How to get a one-to-many result set in mysql
SBS 2008 hangs on crcdisk.sys
Use different HTTP Redirects on multiple virtual directories in IIS 7.5