I'm fairly sure what you're trying to do is not possible. I think you'd have to add an extra identity column to act as PK for the table and then make your two FK columns a unique key for the table, which I believe will allow nulls.
Thread profile page for "[SQL 2000]Composite key (combination of PK from 2 tables) but allow null in
the 2nd c" on http://www.vbforums.com.
This report page is a snippet summary view from a single thread "[SQL 2000]Composite key (combination of PK from 2 tables) but allow null in
the 2nd c", located on the Message Board at http://www.vbforums.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity
| |||||||||||||||||||||||