Foreign key referencing a 2 columns primary key in SQL Server
问题 This question is pretty much similar to this one, but for SQL Server 2005 : I have 2 tables in my database: --'#' denotes the primary key [Libraries] #ID #Application Name 1 MyApp Title 1 2 MyApp Title 2 [Content] #ID Application LibraryID Content 10 MyApp 1 xxx 11 MyApp 1 yyy (the database is obviously much more complex and having this double key makes sense) Each library is identified by its unique ID and Application name. I'm trying to ensure that each content is properly referencing an