rodeomount
Programmer
I'm trying to create a query I can use inside a DTS by dynamically setting the Query inside a dynamic properties task. Below is my select statement for creating the Select statement. I keep getting an error. It's mandatory that I use the query to load the values into the "IN" clause because this query will be run against an oracle db and the values I need in the "IN" clause are coming from SQL Server.
Select 'Select SVC_MS_REC_STS_CD,DTN_ARA_NO_PU_IR
from O858IA.VSVCPAK
where PKG_TCK_NR in (' + Select top 1000 TrackingNum from dbo.TEMP_TPSVCREQ order by TrackingNum + ')'