我有sis軟件包,因為我要從平面文件中獲取值并將其插入表中。在創(chuàng)建一個臨時表中,我執(zhí)行了一個執(zhí)行SQL任務CREATE TABLE [tempdb].dbo.##temptable (date datetime,companyname nvarchar(50),price decimal(10,0),PortfolioId int,stype nvarchar(50))Insert into [tempdb].dbo.##temptable (date,companyname,price,PortfolioId,stype) SELECT date,companyname,price,PortfolioId,stypeFROM ProgressNAVWHERE (Date = '2011-09-30') AND (PortfolioId = 5) AND (stype in ('Index'))ORDER BY CompanyName現(xiàn)在在上面的查詢中,我需要(Date = '2011-09-30') AND (PortfolioId = 5) AND (stype in ('Index')) 使用變量名傳遞這3個參數(shù),我已經(jīng)在包中創(chuàng)建了變量,以便變得動態(tài)。
如何在執(zhí)行SQL任務SSIS中將變量作為參數(shù)傳遞?
瀟湘沐
2019-12-03 15:44:12