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
Current Logged In User
Delete blank line from textarea
SQL reporting services error in sharepoint integrated mode. Shared data source not valid
Unix Perl or Shell script to split a data file by header+trailer
Run the first php script in background - When done - run the next script ...
IPv4 vs IPv6
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Latest Vsphere client
Sorry, VMware GO doesn't currently support ESXi servers with multiple datastores.
Fax machine printing black pages