| ♥ 0 | Ao migrar a base de dados ocorre o erro: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint “PrevFeriasCCusto_PlanoCentros_FK”. The conflict occurred in database “PRI_______”, table “dbo.PlanoCentros Marked as spam |
| Private answer O erro ocorre devido aos seguintes possíveis fatores:
Para diagnosticar, podem ser usados os seguintes selects: - select * from PrevFeriasCCusto where ccusto not in (select centro from PlanoCentros) Mediante o resultado, devem ser criados os registos em falta na tabela PlanoCentros ou apagados os registos que não existem na PlanoCentros da PrevFeriasCCusto. Marked as spam |