I'm creating this trigger
in SQL Server , but I'm not getting the id
to send the data to another table and delete this table.
CREATE TRIGGER MoveComprador
ON comprador
INSTEAD OF DELETE
AS
BEGIN
SELECT * INTO bk_comprador FROM comprador WHERE comprador.codigo = deleted;
END
GO