I have two table and I want to switch on cascade on delete via Query and not via SSMS GUI.
tblEmployee
Name GenderId
tblGender
Id Gender
Scenario: Suppose I have already put the foreign key constraint on tblEmployee tblEmployee_GenderId_Fk and now at a later stage I want to add Cascade on Delete, how to achieve it. I looked into the documentation and it tells the query to add the Cascade on Delete while creating the FK Constraint. But suppose I forgot to add Cascade that time. Then how can I add it later. Something like below
Alter table tblgender ON DELETE CASCADE;