<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Puzzling Situations: Using MultiValue Parameters with Stored Procedures in SSRS</title>
	<atom:link href="http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 12:21:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Aditya Moitra</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-260</link>
		<dc:creator>Aditya Moitra</dc:creator>
		<pubDate>Wed, 25 Jan 2012 21:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-260</guid>
		<description>Absolutely wonderful article! The solution you provided was exactly according to the requirements I had! Thanks so much. :)</description>
		<content:encoded><![CDATA[<p>Absolutely wonderful article! The solution you provided was exactly according to the requirements I had! Thanks so much. <img src='http://blog.summitcloud.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lara</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-242</link>
		<dc:creator>Lara</dc:creator>
		<pubDate>Wed, 12 Oct 2011 21:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-242</guid>
		<description>Great article, it was very helpful for me...&lt;br&gt;Just a litle error (I think it&#039;s a typo): at step number 6 of &quot;Integrate with SQL Reporting Services&quot;  It is not  &quot;Create a DATASOURCE for the report called....&quot; It must be Create a DATASET instead.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Lara</description>
		<content:encoded><![CDATA[<p>Great article, it was very helpful for me&#8230;<br />Just a litle error (I think it&#39;s a typo): at step number 6 of &#8220;Integrate with SQL Reporting Services&#8221;  It is not  &#8220;Create a DATASOURCE for the report called&#8230;.&#8221; It must be Create a DATASET instead.</p>
<p>Thanks,<br />Lara</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umesh</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-239</link>
		<dc:creator>Umesh</dc:creator>
		<pubDate>Mon, 03 Oct 2011 17:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-239</guid>
		<description>can any one help me....&lt;br&gt;&lt;br&gt;Thanks in advance</description>
		<content:encoded><![CDATA[<p>can any one help me&#8230;.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umesh</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-240</link>
		<dc:creator>Umesh</dc:creator>
		<pubDate>Mon, 03 Oct 2011 17:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-240</guid>
		<description>An error occured during local report processing.&lt;br&gt;An error has occured during report processing.&lt;br&gt;The Value expression for the query parameter &#039;@Multi&#039; contains an error: The expression that references the parameter &#039;Type_Of_Aid&#039; does not exist in the Parameter collection. Letters in the names of parameters must use the correct case.</description>
		<content:encoded><![CDATA[<p>An error occured during local report processing.<br />An error has occured during report processing.<br />The Value expression for the query parameter &#39;@Multi&#39; contains an error: The expression that references the parameter &#39;Type_Of_Aid&#39; does not exist in the Parameter collection. Letters in the names of parameters must use the correct case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonard</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-215</link>
		<dc:creator>Leonard</dc:creator>
		<pubDate>Thu, 10 Mar 2011 22:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-215</guid>
		<description>This was a really helpful tip. I used the following logic to parse out duplicates from the string:&lt;br&gt;&lt;br&gt;First, I added a parameter that works just like the TrimSpace parameter: @removeDuplicates bit&lt;br&gt;&lt;br&gt;Then I added the following logic after the @TrimSpace line and before the END:&lt;br&gt;&lt;br&gt;IF @removeDuplicates = 1&lt;br&gt;	-- If removing duplicates is requested, check to see if entry is&lt;br&gt;	-- a duplicate &lt;br&gt;	IF EXISTS (SELECT 1 FROM @Table WHERE Val = @Val)      &lt;br&gt;		-- If it is, do nothing&lt;br&gt;		SET @Val = @Val&lt;br&gt;	ELSE&lt;br&gt;		-- If it isn&#039;t, then add it to the table&lt;br&gt;		INSERT INTO @Table ( [Val] )&lt;br&gt;		VALUES ( @Val )&lt;br&gt;	ELSE&lt;br&gt;	-- If removing duplicates isn&#039;t requested, add it to the table&lt;br&gt;	INSERT INTO @Table ( [Val] )&lt;br&gt;	VALUES ( @Val )</description>
		<content:encoded><![CDATA[<p>This was a really helpful tip. I used the following logic to parse out duplicates from the string:</p>
<p>First, I added a parameter that works just like the TrimSpace parameter: @removeDuplicates bit</p>
<p>Then I added the following logic after the @TrimSpace line and before the END:</p>
<p>IF @removeDuplicates = 1<br />	&#8211; If removing duplicates is requested, check to see if entry is<br />	&#8211; a duplicate <br />	IF EXISTS (SELECT 1 FROM @Table WHERE Val = @Val)      <br />		&#8211; If it is, do nothing<br />		SET @Val = @Val<br />	ELSE<br />		&#8211; If it isn&#39;t, then add it to the table<br />		INSERT INTO @Table ( [Val] )<br />		VALUES ( @Val )<br />	ELSE<br />	&#8211; If removing duplicates isn&#39;t requested, add it to the table<br />	INSERT INTO @Table ( [Val] )<br />	VALUES ( @Val )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes Groleau</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-207</link>
		<dc:creator>Wes Groleau</dc:creator>
		<pubDate>Fri, 25 Feb 2011 15:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-207</guid>
		<description>Duplicates: Since you are building @Table in a loop, you can return SELECT DISTINCT, no?&lt;br&gt; &lt;br&gt;Seems to me that a string join in SSRS and all that logic in SQL amounts to &quot;really an array constructor/deconstructor too.&quot;&lt;br&gt; &lt;br&gt;If you know you&#039;re only working with strings, you should be able to use&lt;br&gt;SSRS (deconstructor):&lt;br&gt;=&quot;&lt;([&quot; &amp; Join(Parameters!FC.Value, &quot;])&gt;,&lt;([&quot;) &amp; &quot;)]&gt;&quot;&lt;br&gt;(Any weird delimiter you can expect to _not_ be a substring of 99.99% of the values)&lt;br&gt;and then in SQL, you don&#039;t need to reconstruct:&lt;br&gt;WHERE @Param Like &#039;%&lt;([&#039; + Col_Name + &#039;)]&gt;&#039;;&lt;br&gt; &lt;br&gt;If they are not strings, well, just wrap Col_Name in whatever formats the value the same way SSRS does.&lt;br&gt;&lt;br&gt;EXCEPT, it didn&#039;t work, though I think it&#039;s not my fault.  Because the third time I tried it, Visual Studio crashed, and now crashes _every_ time I attempt to preview the report, with yesterday&#039;s version!&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Duplicates: Since you are building @Table in a loop, you can return SELECT DISTINCT, no?</p>
<p>Seems to me that a string join in SSRS and all that logic in SQL amounts to &#8220;really an array constructor/deconstructor too.&#8221;</p>
<p>If you know you&#39;re only working with strings, you should be able to use<br />SSRS (deconstructor):<br />=&#8221;&lt;([" &amp; Join(Parameters!FC.Value, "])&gt;,&lt;([") &amp; ")]&gt;&#8221;<br />(Any weird delimiter you can expect to _not_ be a substring of 99.99% of the values)<br />and then in SQL, you don&#39;t need to reconstruct:<br />WHERE @Param Like &#39;%&lt;([&#39; + Col_Name + &#39;)]&gt;&#39;;</p>
<p>If they are not strings, well, just wrap Col_Name in whatever formats the value the same way SSRS does.</p>
<p>EXCEPT, it didn&#39;t work, though I think it&#39;s not my fault.  Because the third time I tried it, Visual Studio crashed, and now crashes _every_ time I attempt to preview the report, with yesterday&#39;s version!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siraj4n</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-203</link>
		<dc:creator>Siraj4n</dc:creator>
		<pubDate>Wed, 12 Jan 2011 17:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-203</guid>
		<description>how can I pass multivalued parameters in my ssrs expression. I dont have any problem with the query. I used the same approach to get the data from the query. That is I have used function in my query. I have problem in my expression. If I select more than one value I am getting error.&lt;br&gt;&lt;br&gt;Example:&lt;br&gt;iif(Fields!myfield.value = Parameters!myparameters.value(0),&quot;0&quot;,&quot;&quot;)&lt;br&gt;I tried using Join, Instr its not working. Can you please help me out with this problem&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>how can I pass multivalued parameters in my ssrs expression. I dont have any problem with the query. I used the same approach to get the data from the query. That is I have used function in my query. I have problem in my expression. If I select more than one value I am getting error.</p>
<p>Example:<br />iif(Fields!myfield.value = Parameters!myparameters.value(0),&#8221;0&#8243;,&#8221;")<br />I tried using Join, Instr its not working. Can you please help me out with this problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel D DeHaven</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-198</link>
		<dc:creator>Daniel D DeHaven</dc:creator>
		<pubDate>Thu, 02 Dec 2010 23:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-198</guid>
		<description>I can get a fairly simple query to work with this but when there are multiple Joins in a query it doesn&#039;t return any results. I do appreciate tip as it&#039;s really got me thinking and I know I can&#039;t be far from a solution.</description>
		<content:encoded><![CDATA[<p>I can get a fairly simple query to work with this but when there are multiple Joins in a query it doesn&#39;t return any results. I do appreciate tip as it&#39;s really got me thinking and I know I can&#39;t be far from a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-196</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 23 Nov 2010 23:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-196</guid>
		<description>Awesome!  You are the man.  Says right in the book: The data source cannot be a stored procedure. Reporting Services does not support passing a multivalued parameter array to a stored procedure.&lt;br&gt;but you got me past that!  thank you!!!</description>
		<content:encoded><![CDATA[<p>Awesome!  You are the man.  Says right in the book: The data source cannot be a stored procedure. Reporting Services does not support passing a multivalued parameter array to a stored procedure.<br />but you got me past that!  thank you!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur Adarsh</title>
		<link>http://blog.summitcloud.com/2010/01/multivalue-parameters-with-stored-procedures-in-ssrs-sql/comment-page-1/#comment-191</link>
		<dc:creator>Ankur Adarsh</dc:creator>
		<pubDate>Tue, 02 Nov 2010 09:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.summitcloud.com/?p=370#comment-191</guid>
		<description>This is fine but having two problem.
&lt;br&gt;
&lt;br&gt;1. Join cause post back (re-filling of dataset)
&lt;br&gt;2. Execution time exceeds 
&lt;br&gt;
&lt;br&gt;Reply on ankuradarsh@gmail.com</description>
		<content:encoded><![CDATA[<p>This is fine but having two problem.</p>
<p>1. Join cause post back (re-filling of dataset)<br />
<br />2. Execution time exceeds </p>
<p>Reply on <a href="mailto:ankuradarsh@gmail.com">ankuradarsh@gmail.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

