I have created a temporary table @TablaTurno , which I insert data in the following way:
insert @TablaTurno
select ROW_NUMBER() OVER(ORDER BY tturno)+@idturno as IDTurno,mci.IDCaja as IDCaja,@idestado as IDEstado,@idlocal as IDLocal,......
asked by
03.01.2017 / 17:25