Hello,I am creating a table as follows:create table dbo.FilesCategories( FileID uniqueidentifier not null, CategoryID uniqueidentifier not null, constraint PK_FilesCategories primary key clustered (FileID, CategoryID), constraint FK_FilesCategories_Files foreign key(FileID) references dbo.Files(FileID), constraint FK_FilesCategories_Categories foreign key(CategoryID) references dbo.Categories(CategoryID) )
When I add "on delete cascade" VS 2008 gives me an error and outlines my code with a blue line. Am I doing something wrong?... constraint FK_FilesCategories_Files foreign key(FileID) references dbo.Files(FileID) on delete cascade, constraint FK_FilesCategories_Categories foreign key(CategoryID) references dbo.Categories(CategoryID) on delete cascade...Thanks,Miguel