tengo la siguiente consulta
if OBJECT_ID('replicacion2') is not null
begin
drop trigger replicacion2
end
go
create trigger replicacion2
on ALUMNO
after insert
as
if (select carrera from ALUMNO)='sistemas'
begin
insert [192.168.0.13].ESCUELA.dbo.ALUMNO select * from inserted
end
else
insert ESCUELA select * from inserted
go
al hacer el insert
INSERT INTO ALUMNO VALUES (13090878,'IVAN SOLORZANO','SEPTIMO','SISTEMAS');
La subconsulta ha devuelto más de un valor, lo que no es correcto cuando va a continuación de =, !=, <, <=, >, >= o cuando
se utiliza como expresión.