sql query problem when reporting
问题 I have this sql query that it's all working fine but i want to parse the 'where part' using a parameter (@ged) when i try this in sql it work fine..but i can't get it working in crystal report or sql reporting service in this query ..@J_Sec is a parameter and @ged is the rest of the where statment CREATE proc [dbo].[con] @J_Sec as nvarchar(255), @ged as varchar(max) as declare @sql as varchar(max) set @sql=' select (case when c.Age_18_24=1 then ''18-24'' when c.Age_25_29=1 then ''25-29'' when