I have the following code to execute in a DTS package. The code in red doesnot execute since the DTS package resides on SERVER1 and the query looks for data from SERVER2. Is there away I can get that value as a dynamic variable and pass it on to this query. Some sample code will help.
Thank you.
PKS.
Thank you.
PKS.
Code:
SELECT T1.EMPLID,T1.EMPLNAME,T1.EFFECTIVE_DATE
FROM EMPLOYEE.DBO.TBL1 T1
WHERE T1.ORGID = 'TT'
AND T1.ENTYCODE = 'T'
AND T1.FISCAL_YR = [COLOR=red](Select Fiscal_Year
from SERVER2.Fac.dbo.Fac_Ext_Parms P1
Where P1.Parm_Key = 1)[/color]