Reporting services 在SSRS中将多值参数的数据类型nvarchar转换为int时出错
我在报告中有一个参数客户端,它接受多值。 当我为一个客户机运行该值时,它工作正常,但当我包含多个客户机时,会出现如下错误: “将多值参数的SSRS中的数据类型nvarchar转换为int时出错” 下面是根据客户机参数提供数据的存储过程Reporting services 在SSRS中将多值参数的数据类型nvarchar转换为int时出错,reporting-services,ssrs-2008,ssrs-2008-r2,ssrs-tablix,ssrs-grouping,Reporting Services,Ssrs 2008,Ssrs 2008 R2,Ssrs Tablix,Ssrs Grouping,我在报告中有一个参数客户端,它接受多值。 当我为一个客户机运行该值时,它工作正常,但当我包含多个客户机时,会出现如下错误: “将多值参数的SSRS中的数据类型nvarchar转换为int时出错” 下面是根据客户机参数提供数据的存储过程 Create PROCEDURE SampleLead @InvClientId int AS begin SELECT [SourceSystemId] ,[SourceLeadId] ,[FirstName] ,[LastName]
Create PROCEDURE SampleLead
@InvClientId int
AS
begin
SELECT [SourceSystemId]
,[SourceLeadId]
,[FirstName]
,[LastName]
,[Title]
,[TitleType]
,[Role]
,[CustomerName]
,[Address1]
,[Address2]
,[City]
,[State]
,[ZipCode]
,[Country]
,[InvClientId]
,[Campaign]
,[Email]
,[Phone]
,[InvUserId]
,[RevenueRangeId]
,[EmployeeRangeId]
,[Industry]
,[SICCode]
,[NAICSCode]
,[DUNSNo]
,[CreatedDate]
,[ModifiedDate]
,[LeadStatus]
FROM [CRMIntegration].[dbo].[Lead]
Where InvClientid in (@invClientID)
END
GO
invClientId在源表中声明为int
和SSRS参数,我已将数据类型设置为int
您能否帮助我,为什么它不适用于多个值,而适用于我选择单个值的情况?根据您的存储过程,它无法执行 参考