i am using the below code:
I tried using PD_ID IN (@Part) but SSRS still bombs.
@Part can be multiple parts
thoughts?
if object_id('TEMPDB..#temp1') is not null
drop table #temp1;
select * into #temp1 from
(select distinct
[PD_ID]
, [LIKE_PD_ID]
, [FLAT_LIKE_PD_ID]
, [FLAT_PD_ID]
from
[ADHOC].[FORD_PDLINK] P
where
PD_ID = @Part
) as test
select * from #temp1