t.Duty_Saved is an INVALID COLUMN Name in the second Select but not the first.
Odd. Thoughts? thanks
[code language="sql"]use GTM_ODS;
if object_id('TEMPDB..#tempProto')
Odd. Thoughts? thanks
[code language="sql"]use GTM_ODS;
if object_id('TEMPDB..#tempProto')