I am trying to use the below insert, receiving below error.Not sure what is causing the error. select query runs absolutely fine with no issues, but with insert giving error.Msg 8152, Level 16, State 13, Line 24String or binary data would be truncated.The statement has been terminated. insert into tab_contracts ([ProgID] ,[ProjID] ,[ContractNO] ,[ContractCode] ,[ContractName] ,[ContractDescription],deleted) SELECT 71, 1220,[NIT], [NIT], ltrim(rtrim(replace([Razón Social],'"',''))), 'Business Type Contracts',0 FROM [Contadores_Juridicos_Business_NIT] where [Razón Social] is not null group by [Razón Social],[NIT]
Thanks a lot for the helpful info.