DNN version: 5.6.2
Tool: SQL Server Management Studio
Action: Copy database
Error: There are no primary or candidate keys in the referenced table 'Roles' that match the referencing column list in the foreign key 'FK_UserRoles_Roles'
I tried searching for this error online, but all searches lead to topics where this error is encountered while creating a foreign key to a non-unique column. In my case, the key is already created. I double-checked that the RoleId column is the primary key on the Roles table and it is indeed the column the foreign key 'FK_UserRoles_Roles' references.
Any help to fix this is appreciated. Alternatively, what will be a quick way to copy the structure and data of my database apart from the "Copy Database" option?
Thanks!