use RC001
declare @line_amount integer
set @line_amount = null
select top 10 * from rec_items where
(ABS(line_amount) like convert(int,isnull(@line_amount,'%')))
and rec_id = 'HWK1004'
The column itself only contains numbers and is always populated however im using the code to build a report in SSIS where there are several other selectable columns and want the user to be able to leave the column blank. As the column always contains values I want to replace the blnak column which will accept NULLS thotugh the SSIS design to replace those nulls we a wild card. The problme is I need to affective convert the wildcard into a number.
Thanks for your assistance
declare @line_amount integer
set @line_amount = null
select top 10 * from rec_items where
(ABS(line_amount) like convert(int,isnull(@line_amount,'%')))
and rec_id = 'HWK1004'
The column itself only contains numbers and is always populated however im using the code to build a report in SSIS where there are several other selectable columns and want the user to be able to leave the column blank. As the column always contains values I want to replace the blnak column which will accept NULLS thotugh the SSIS design to replace those nulls we a wild card. The problme is I need to affective convert the wildcard into a number.
Thanks for your assistance