我有sis软件包,因为我要从平面文件中获取值并将其插入表中。在创建一个临时表中,我执行了一个执行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现在在上面的查询中,我需要(Date = '2011-09-30') AND (PortfolioId = 5) AND (stype in ('Index')) 使用变量名传递这3个参数,我已经在包中创建了变量,以便变得动态。
添加回答
举报
0/150
提交
取消