SELECT Code,Description FROM Product
WHERE Code > 0 AND Description IN (@.Description)
I am using SP2 on SQL2005, also I do not have the option of Select-All which I expected to be present.Any help would be most appreiated.
Thanks
JohnJames
Did you try running the same scenario in SQL query analyser.
A sample data with your executable statements what you have tried in sql server to get the result might help to focus on the issue
|||Hi RajThanks for your reply.
Two values I am selecting are Radio,Television.
These are selected from the Report Viewer.
I have captured values in Temp table and the appear to be correct.
I suspect it is the way SQL Server is interpreting the csv list of values.
|||It does appear to be a problem with the SP.
If I copy the SQL to query designer in the report
the multi-select parameters work fine.
I have written a T-SQL Split function to overcome the problem,
but I am a little surprised that the SP cannot handle the
multi-select parameter.
Is this a problem other developers have come across ?
or is it something wrong I am doing.
JohnJames
No comments:
Post a Comment