Código:
.pero me manda error.-....hay un errr de sntaxis cerca de valuesif not exists(select * from tickets..tempUsuario where sClaveUsuario=sClaveUsuario) insert into tickets..tempUsuario select * from tickets..CAT_USUARIOS where idUsuario=idUsuario values idstatus Else update tickets..tempUsuario set idstatus =idstatus where idUsuario =idUsuario
Servidor: mensaje 156, nivel 15, estado 1, línea 3
Incorrect syntax near the keyword 'values'.
K HAGO
Lee este tema==> Mejoremos la ortografía.