How can I pass these two value combination separated by AND/ as parameter value to stored procedure:
"8033301552*" OR "08033301552*"
or
"Taiwo*" AND "Ayedun*"
I mean do I need to create a string and pass it as parameter?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Officially not supported.
A workaround can be found at
http://groups.google.com/group/microsoft.public.sqlserver.reportingsvcs/browse_thread/thread/a5e0fdb24323aa13/e0fcc4c2d38883ec%23e0fcc4c2d38883ec?pli=1
What doesn’t work has nothing really to do with RS but has to do with Stored
Procedures in SQL Server. You cannot do the following in a stored procedure.
Let’s say you have a Parameter called @MyParams
Now you can map that parameter to a multi-value parameter but if in your
stored procedure you try to do this:
select * from sometable where somefield in (@MyParams)
It won’t work. Try it. Create a stored procedure and try to pass a
multi-value parameter to the stored procedure. It won’t work.
What you can do is to have a string parameter that is passed as a multivalue
parameter and then change the string into a table.
This technique was told to me by SQL Server MVP, Erland Sommarskog
For example I have done this
inner join charlist_to_table(@STO,Default)f on b.sto = f.str
So note this is NOT an issue with RS, it is strictly a stored procedure
issue.
Here is the function:
—
Bruce Loehle-Conger
MVP SQL Server Reporting Services
“Roland Müller” wrote in message