CREATE TABLE [TB_User_GroupCalendar] (
[UserID] int NOT NULL,
[GroupCalendarID] INT NOT NULL,
FOREIGN KEY(UserID) REFERENCES TB_User(ObjectID),
FOREIGN KEY(GroupCalendarID) REFERENCES TB_GroupCalendar(ObjectID)
)
If I try to insert record with GroupCalendarID=777, provided that no 777 exists in TB_GroupCalendar, I nevertheless, get my record inserted into TB_User_GroupCalendar. What I'm doing wrong and how to fix this?