<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SSRS Blog</title>
        <link>http://geekswithblogs.net/ssrs/Default.aspx</link>
        <description>Reporting Services</description>
        <language>en-US</language>
        <copyright>ssrs</copyright>
        <managingEditor>peteottoman@yahoo.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>SSRS Blog</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/ssrs/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Exporting SSRS Report with Excel Formulas Preserved</title>
            <category>SSRS</category>
            <category>FYI</category>
            <link>http://geekswithblogs.net/ssrs/archive/2009/12/15/exporting-ssrs-report-with-excel-formulas-preserved.aspx</link>
            <description>&lt;p&gt;Ahh Microsoft Excel, the key tool of every financial analyst across the world. Where would we be without you? What application would receive all of the notoriety for analysts mistakenly leaving in sensitive data in a hidden column? How would an analyst store tons of data that is a pain to mine?&lt;br /&gt;
&lt;br /&gt;
As part of our conversion of some of our legacy Excel "systems" we have had to still produce Excel Reports. These reports have the strict requirement that when they are exported to Excel, they should still have the formulas so Analysts can do some scenario analysis. Lets ignore the analysis portion and get into the good old-fashioned coding part.&lt;br /&gt;
&lt;br /&gt;
First, go ahead and read this article from SSRS books:&lt;br /&gt;
&lt;br /&gt;
http://msdn.microsoft.com/en-us/library/ms159220%28SQL.90%29.aspx&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Ok, did you read it? Was your question already answered? Awesome! Did you skip it and just want the answer here? Fine fine....&lt;br /&gt;
&lt;br /&gt;
If you want the expression to export into Excel (so the user can play with the Excel spreadsheet and see values update dynamically) - you will need to set the field value to something like this:&lt;br /&gt;
&lt;br /&gt;
=ReportItems!txtBox1.Value + ReportItems!txtBoxTwo.Value&lt;br /&gt;
&lt;br /&gt;
See? that was fairly easy.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Some gotchas:&lt;br /&gt;
&lt;br /&gt;
1) Putting in a lot of formulas WILL make your report run slower/take much longer to render&lt;br /&gt;
&lt;br /&gt;
2) Make sure the cells are properly formatted (text, numeric, etc) before exporting as Excel can get confused.&lt;br /&gt;
&lt;br /&gt;
3) Always make sure your SSRS Server is patched and up-to-date!&lt;/p&gt; &lt;img src="http://geekswithblogs.net/ssrs/aggbug/137000.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>ssrs</dc:creator>
            <guid>http://geekswithblogs.net/ssrs/archive/2009/12/15/exporting-ssrs-report-with-excel-formulas-preserved.aspx</guid>
            <pubDate>Tue, 15 Dec 2009 22:37:47 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ssrs/comments/137000.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ssrs/archive/2009/12/15/exporting-ssrs-report-with-excel-formulas-preserved.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/ssrs/comments/commentRss/137000.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Steps to Resolve SSRS Timeout Issues</title>
            <category>SSRS</category>
            <category>Troubleshooting</category>
            <link>http://geekswithblogs.net/ssrs/archive/2009/10/30/steps-to-resolve-ssrs-timeout-issues.aspx</link>
            <description>Been awhile since I had posted anything and what better way to restart this blog than with some Timeout Issues. Now this list is designed for SSRS 2005, but you can put a few of these tips to use in 2008. Consider these steps in the below order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;1) Set the HttpRuntime ExecutionTimeout value to a greater value (ie 3 hours) on the Report Server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
How do you do this? Simple!&lt;br /&gt;
&lt;br /&gt;
a.       Open the ReportServer’s Web.config file by going to Start -&amp;gt; Administrative Tools -&amp;gt; Internet Information Services.&lt;br /&gt;
b.      From there, expand Web Sites -&amp;gt; Default Web Site, and click on ReportServer. On the right-hand pane, right-click ‘Web.Config’ and select ‘Open’.&lt;br /&gt;
c.       Locate the HttpRuntime parameter. If it doesn’t exist, you will have to create it within the &amp;lt;System.Web&amp;gt; section.&lt;br /&gt;
d.      Set the executionTimeout value to ‘10800’ (3 hours) as shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-left: 40px;"&gt;&amp;lt;system.web&amp;gt;&lt;br /&gt;
&amp;lt;httpRuntime executionTimeout = "10800" /&amp;gt;&lt;br /&gt;
&amp;lt;/system.web&amp;gt;&lt;br /&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;2) Increase the script timeout on the report server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
   1. Go onto your Reporting Server and open up Internet Information Services; right-click on the ReportServer and select Properties.&lt;br /&gt;
   2. Go to the Options tab, and set the ASP Script timeout to 300 seconds as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;3) Set the report to never time out on the server&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
   1. Open your web browser on the server and go to http://localhost/Reports&lt;br /&gt;
   2. Navigate to the Report location and click on the problem report(s).&lt;br /&gt;
   3. On the left-hand pane, click on Properties.&lt;br /&gt;
   4. In the ‘Report Execution Timeout’ click the ‘Do not timeout report execution’.&lt;br /&gt;
  &lt;img src="http://geekswithblogs.net/ssrs/aggbug/135911.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>ssrs</dc:creator>
            <guid>http://geekswithblogs.net/ssrs/archive/2009/10/30/steps-to-resolve-ssrs-timeout-issues.aspx</guid>
            <pubDate>Fri, 30 Oct 2009 21:29:57 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ssrs/comments/135911.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ssrs/archive/2009/10/30/steps-to-resolve-ssrs-timeout-issues.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/ssrs/comments/commentRss/135911.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Handling Multi-Value Parameter with a Stored Procedure</title>
            <category>SSRS</category>
            <category>FYI</category>
            <link>http://geekswithblogs.net/ssrs/archive/2009/09/14/handling-multi-value-parameter-with-a-stored-procedure.aspx</link>
            <description>In my experience with SSRS, I have noticed that there are two types of report developers:&lt;br /&gt;
&lt;br /&gt;
1) SQL Developer that naturally flowed into SSRS, uses Stored Procedures for database development and has a very solid background for development.&lt;br /&gt;
&lt;br /&gt;
2) Developers from other categories that somehow fell into SSRS.&lt;br /&gt;
&lt;br /&gt;
I come from the second school but I have an endless desire for learning about technology and have been fortunate enough to work with some really intelligent developers.&lt;br /&gt;
&lt;br /&gt;
Which brings me to one of the more common issues in SSRS - Passing multi-value parameter into a stored procedure.&lt;br /&gt;
Munish Batel does an excellent job of explaining the issue here:&lt;br /&gt;
http://munishbansal.wordpress.com/2008/12/29/passing-multi-value-parameter-in-stored-procedure-ssrs-report/&lt;br /&gt;
&lt;br /&gt;
However, I am going to go into an even crazier amount of detail and provide some tips and things to remember.&lt;br /&gt;
&lt;br /&gt;
1) Know your stored procedure. When you are getting into the realm of passing of multi-value parameter into a stored procedure, make sure you know the total size of the parameter in your SP as well as the total number of choices you can have in the multi-value (MV) parameter.&lt;br /&gt;
&lt;ul&gt;
    &lt;li&gt;For example - we had a developer setup a MV parameter that could have up to 10,000 items checked (!!!) in the list. In the stored procedure, the parameter definition was varchar(50). You can see where this would go wrong.&lt;/li&gt;
&lt;/ul&gt;
2) If you are using the solution posted above, it is important you understand you will need to code a UDF function to split up the parameter - Split in VB land. This URL does a good job of explaining that as well:&lt;br /&gt;
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=50648&lt;br /&gt;
&lt;br /&gt;
I am partial to this function:&lt;br /&gt;
&lt;font size="2" face="Verdana, Arial, Helvetica" color="midnightblue"&gt;&lt;span class="spnMessageText" id="msg"&gt;
&lt;pre id="code"&gt;&lt;font size="2" face="courier" id="code"&gt;-- 7998 bytes max (but faster)&lt;br /&gt;   CREATE FUNCTION dbo.udf_Split (@param varchar(7998)) RETURNS TABLE AS&lt;br /&gt;   RETURN(SELECT substring(',' + @param + ',', Number + 1,&lt;br /&gt;                    charindex(',', ',' + @param + ',', Number + 1) - Number - 1)&lt;br /&gt;                 AS Value&lt;br /&gt;          FROM   Numbers&lt;br /&gt;          WHERE  Number &amp;lt;= len(',' + @param + ',') - 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            AND  substring(',' + @param + ',', Number, 1) = ',')&lt;br /&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;/span&gt;&lt;/font&gt; &lt;img src="http://geekswithblogs.net/ssrs/aggbug/134808.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>ssrs</dc:creator>
            <guid>http://geekswithblogs.net/ssrs/archive/2009/09/14/handling-multi-value-parameter-with-a-stored-procedure.aspx</guid>
            <pubDate>Mon, 14 Sep 2009 19:49:56 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/ssrs/comments/134808.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/ssrs/archive/2009/09/14/handling-multi-value-parameter-with-a-stored-procedure.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/ssrs/comments/commentRss/134808.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
