I have two related tables:
[GameDataGroup] with PK
[Arena_GameData] with FK
I try to execute query:
DELETE FROM [ACP_MAIN_STABLE_DB_content].[dbo].[GameDataGroup]
WHERE [key] LIKE '%' + '_test_group' + '%'
And have a message:
The DELETE statement conflicted with the REFERENCE constraint "FK__Arena_GameData__GameDataGroup". The conflict occurred in database "ACP_MAIN_STABLE_DB_content", table "dbo.Arena_GameData", column 'gameDataGroupId'.
While there is no related data in "dbo.Arena_GameData", column 'gameDataGroupId'
. Why it is prventing me to delete that record?
The 'FK__Arena_GameData__GameDataGroup' definition:
FK__Arena_GameData__GameDataGroup
defintion? – Kingmaker