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
Oracle packages
How to Populate a ListBox Control with Values from an Access Database Table
Server 2008 NLB problem
Extremely slow access to Redirected Folders in SBS2008 with XP Pro clients
How do I read an unsigned character in C#?
SBS 2008 strange issue
How do I change the default directory for program files in server 2008 r2?
Replacing SAN-added UCC SSL Cert
Remote Desktop Connection to Windows SBS 2008
EIGRP Feasibility Condition