locked
Foreign key relationship in sharepoint list? RRS feed

  • Question

  • How can I implement foreign key relationship in a SharePoint list? I am not talking about lookup types but a typical foreign key relationship where in a column "ID_Keys" in a table is the primary key of "Keys" table. How can we force SharePoint to enforce integrity? Is it at all possible to design a true relational schema with SharePoint lists?

     

    Thanks for sharing your thoughts!

    Wednesday, June 11, 2008 1:33 PM

Answers

  • so far sharepoint is not meant to be a RDBMS system. so we should not confuse it with such requirements.

    if you have such a requirement, you will have to do it at your own by writing an Event handler so you can check this relationship.

    Wednesday, June 11, 2008 1:42 PM

All replies

  • so far sharepoint is not meant to be a RDBMS system. so we should not confuse it with such requirements.

    if you have such a requirement, you will have to do it at your own by writing an Event handler so you can check this relationship.

    Wednesday, June 11, 2008 1:42 PM
  • A bit late, but still - the SPListConstraints feature for SharePoint contains, among other constraints, a foreign key constraints for SharePoint list.

    The main difference, atleast at this time, from SQL foreign constraints is that the foreign constraint in SPListConstraints does not prevent removing records from the foreign list.


    Sunday, March 8, 2009 5:18 PM
  • Wednesday, November 7, 2012 6:13 PM