Foreign key referencing a 2 columns primary key in SQL Server
Of course it’s possible to create a foreign key relationship to a compound (more than one column) primary key. You didn’t show us the statement you’re using to try and create that relationship – it should be something like: ALTER TABLE dbo.Content ADD CONSTRAINT FK_Content_Libraries FOREIGN KEY(LibraryID, Application) REFERENCES dbo.Libraries(ID, Application) Is that what you’re … Read more