Had five parameters, out of that 3 are optional
In the parameter properties checked Allow null vaues.
In the Dataset properties In the query designer used
Select * from Table
where ( Column name = @prm1 oR @prm1 IS NULL)
AND (Column name = @prm2 oR @prm2 IS NULL)
AND(Column name = @prm3 oR @prm3 IS NULL)
on clicking OK, it is asking to define query parameters - in that i tried giving parameter value as null,blank and even gave parameter name but it is showing the below error
Could not update a list of fields for the query. Verify that you can connect to the data source and
that your query syntax iscorrect. Invalid Column name ......
when i run the report it showed the following error -
Query execution failed for dataset1, must declare the scalar variable.
Any solutions to resolve this issue? Thanks for the help