通过多值参数-SSRS的选项传递多个值

时间:2013-09-16 16:20:27

标签: sql reporting-services

我正在尝试通过SSRS报告的参数从字段传递多个值。这是一个多值参数。下面的代码只是拉取最新的 set @department 语句的记录,而不是我希望它提取的其余值。我可以添加什么来将此字段中的所有值传递给多值参数中的那个选项。非常感谢你的帮助。

while (@department = 'RSI ALL')
begin
if @department = 'RSI ALL' 
begin
set @department = 'RSI-IT'
set @department = 'RSI'
set @department = 'RSI-JAX'
set @department = 'IT'
end
if (@department <> 'RSI ALL')
break
else 
continue
end

0 个答案:

没有答案