When doing this insert:
INSERT INTO t_cmo_oit1980_leitura(id_oit_let,id_oit,rx_num, dt_rx)
SELECT (1),
(SELECT id_oit
FROM t_cmo_oit1980
WHERE id_oit = 6574),
(SELECT rx_num
FROM t_cmo_planilha_leitura
WHERE id_xfc = 39517),
(SELECT dt_rx
FROM t_cmo_planilha_leitura
WHERE id_xfc = 39517);
GO
The error happens:
Message 8152, Level 16, State 14, Line 19 String or binary data would be truncated. The statement has been terminated.
Table t_cmo_planilha_leitura(Origem)
Tablet_cmo_oit1980_leitura(Destino)