Hi all.
I've a dataset select like this:
The variable @noms has the value 'table','potato'
If I set the line FilteredSystemUser.fullname in ('table','potato') the select is working fine.
but using a report parameter like the expression:
FilteredSystemUser.fullname in (@noms) don't.
What I'm missing??
thanks for you help in advance.
I've a dataset select like this:
Code:
DECLARE @reprcodistr VARCHAR(1000)
SELECT @reprcodistr = COALESCE (@reprcodistr, '') +
FilteredHCG_CodigoRepresentante.hcg_codigo + ','
FROM FilteredSystemUser INNER
JOIN FilteredBusinessUnit ON
FilteredSystemUser.businessunitid =
FilteredBusinessUnit.businessunitid INNER JOIN
FilteredHCG_CodigoRepresentante ON
FilteredSystemUser.systemuserid =
FilteredHCG_CodigoRepresentante.ownerid
Where
FilteredSystemUser.fullname in (@noms)
SELECT @reprcodistr AS reprcodi
The variable @noms has the value 'table','potato'
If I set the line FilteredSystemUser.fullname in ('table','potato') the select is working fine.
but using a report parameter like the expression:
FilteredSystemUser.fullname in (@noms) don't.
What I'm missing??
thanks for you help in advance.