I have 5 tables that are connected together:
Table A
Table B
Table C
Table D
Table E
- Table A
PK
isCode
column. - Table B
PK
isCode
column. - Table C
PK
isNumber
column. - Table D
PK
isNumber
column. - Table E
PK
isName
column.
Relationship between the tables above is next:
- Table A
PK
hasFK
in Table BACode
column - Table A
PK
hasFK
in Table CACode
column Table A
PK
hasFK
in Table EACode
columnTable B
PK
hasFK
in Table CBCode
columnTable B
PK
hasFK
in Table EBCode
columnTable C
PK
hasFK
in Table DCNumber
column
This part above was pretty simple to organize in Microsoft SQL Server Management Studio. Now I would like to create CASCADE on Update on all FK
columns. For example if PK
in Table A gets updated all other FK
in other columns (B,C and E) should update as well. Is this something that would be recommended and how I can achieve this in SQL Server 2008?