Tengo el siguiente problema:
Trato de hacer un DELETE de una Tabla PERSONA mediante el procedimiento
almacenado:
CREATE PROCEDURE DELETE_PERSONA
@PER_SECUENCIA int
AS
DELETE FROM PERSONA
WHERE PER_SECUENCIA = @PER_SECUENCIA
GO
Este SP lo llamo desde C# y me salta una Excepcion que dice que es error
del SQLServer y es el siguiente:
DELETE statement conflicted with COLUMN REFERENCE constraint
'FK_CLIENTE_PERSONA'. The conflict occurred in database 'Easy', table
'CLIENTE', column 'PER_SECUENCIA'.
The statement has been terminated.
Alguien me puede ayudar a entender porque ha sucedido esto y solucionar el
problema.
Gracias
Leer las respuestas