TysonLPrice
Programmer
The second select is in production and started generating truncation warning. We fixed the issue but I wonder why it
generates errors with set ansi_warnings off in place?
set ansi_warnings off
Declare @T1 TABLE(TestIt VARCHAR(20))
-- This works – no warning
insert into @T1(Testit) values('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
-- This doesn’t work – warning and is what is done in that SP
insert into @T1(Testit)
exec('Select ''xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'' ')