<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ed Giardina's .NET Blog - All Comments</title><link>http://bloggingabout.net/blogs/egiardina/default.aspx</link><description>Blogging about Hobbyist Adventures in C#, XNA, ASP.NET and other stuff</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#482664</link><pubDate>Fri, 08 Jan 2010 13:14:32 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482664</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;Thanks! Your solution was just what I needed!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482664" width="1" height="1"&gt;</description></item><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#482632</link><pubDate>Sun, 27 Dec 2009 14:35:49 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482632</guid><dc:creator>Alaa </dc:creator><description>&lt;p&gt;hi all, am trying to walk through steps described above &lt;/p&gt;
&lt;p&gt;&amp;quot;UNION &lt;/p&gt;
&lt;p&gt;SELECT NULL, &amp;#39;All&amp;#39;&lt;/p&gt;
&lt;p&gt;ORDER BY 1,2&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;could u plz describe what does this query do, who does it works ??&lt;/p&gt;
&lt;p&gt;I tried this solution but it does not work, am using SSRS 2008, and trying to do the date/time parameters optional, any suggestions !!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482632" width="1" height="1"&gt;</description></item><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#482598</link><pubDate>Thu, 17 Dec 2009 16:27:10 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482598</guid><dc:creator>Swetha Sankaran</dc:creator><description>&lt;p&gt;Great post, thanks! We had to pass the parameter through url from .NET code calling the rdl in the ReportServer.&lt;/p&gt;
&lt;p&gt;Following your steps, the report generated in BIDS without any issues. But when trying to access it through URL the parameter didn&amp;#39;t acced NULL value.&lt;/p&gt;
&lt;p&gt;One quick addition resolved it.&lt;/p&gt;
&lt;p&gt;{domain}/ReportServer/Pages/ReportViewer.aspx?YourReportName&amp;amp;rs:Command=Render&amp;amp;Parameter1=Value&amp;amp;Parameter2:isNull=True&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482598" width="1" height="1"&gt;</description></item><item><title>re: "Failed to Enable Constraints" Error, and the Zen of DataSets</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/04/11/failed-to-enable-constraints-error-and-the-zen-of-datasets.aspx#482457</link><pubDate>Fri, 13 Nov 2009 00:21:46 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482457</guid><dc:creator>dtb</dc:creator><description>&lt;p&gt;Ran into this myself. The cause in this case was unprintable characters in a character column that was part of a primary key.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482457" width="1" height="1"&gt;</description></item><item><title>re: Check intersection of two date ranges in SQL</title><link>http://bloggingabout.net/blogs/egiardina/archive/2008/01/30/check-intersection-of-two-date-ranges-in-sql.aspx#482263</link><pubDate>Mon, 05 Oct 2009 20:38:17 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482263</guid><dc:creator>colin</dc:creator><description>&lt;p&gt;also note, that if you break out the NOT, you get something like this:&lt;/p&gt;
&lt;p&gt;daterange1_startdate &amp;lt;= daterange2_end_date &lt;/p&gt;
&lt;p&gt;AND daterange1_endate &amp;gt;= daterange2_startdate&lt;/p&gt;
&lt;p&gt;which i&amp;#39;m using like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;min(dateCreated) &amp;lt;= @EndDate and max(DateCreated) &amp;gt;= @StartDate&lt;/p&gt;
&lt;p&gt; &amp;nbsp;group by ...&lt;/p&gt;
&lt;p&gt;i always prefer AND to OR, but it really doesn&amp;#39;t make any difference.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482263" width="1" height="1"&gt;</description></item><item><title>re: What? No Columns in my GridView?</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/04/17/what-no-columns-in-my-gridview.aspx#482120</link><pubDate>Wed, 26 Aug 2009 18:14:29 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482120</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;Thanks very much Virender&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482120" width="1" height="1"&gt;</description></item><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#482102</link><pubDate>Mon, 24 Aug 2009 06:48:17 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:482102</guid><dc:creator>Sindy</dc:creator><description>&lt;p&gt;What if i want to have an option of either passing a parameter or not??&lt;/p&gt;
&lt;p&gt;For e.g.&lt;/p&gt;
&lt;p&gt;either execute &lt;/p&gt;
&lt;p&gt;select * from emp where emp_id=&amp;#39;001&amp;#39;;&lt;/p&gt;
&lt;p&gt;or if i dont want to pass the value then select all emps as:&lt;/p&gt;
&lt;p&gt;select * from emp;&lt;/p&gt;
&lt;p&gt;Please help!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=482102" width="1" height="1"&gt;</description></item><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#481943</link><pubDate>Fri, 17 Jul 2009 10:01:05 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481943</guid><dc:creator>Alan</dc:creator><description>&lt;p&gt;Hi Guys&lt;/p&gt;
&lt;p&gt;Great post and thanks for the solution. I did a slight rework on the sql though&lt;/p&gt;
&lt;p&gt;Select Employee_Id, Full_Name,1 As [Sort Order]&lt;/p&gt;
&lt;p&gt;From Employee&lt;/p&gt;
&lt;p&gt;Union All&lt;/p&gt;
&lt;p&gt;Select Null As [Employee_Id], &amp;#39;&amp;lt;Optional Exclude&amp;gt;&amp;#39; As [Full_Name], 0 As [Sort Order]&lt;/p&gt;
&lt;p&gt;Order By [Sort Order],Full_Name&lt;/p&gt;
&lt;p&gt;This has the effect of auto choosing the first value in the list on running which is always my null because of the ordering.&lt;/p&gt;
&lt;p&gt;I am seeing another wierd issue though, as whatever I select it always changes the selected option to the last one in the list &amp;lt;Grrrrrrrr&amp;gt;&lt;/p&gt;
&lt;p&gt;I suspect this might be a service pack issue ????&lt;/p&gt;
&lt;p&gt;Anyone ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481943" width="1" height="1"&gt;</description></item><item><title>re: Check intersection of two date ranges in SQL</title><link>http://bloggingabout.net/blogs/egiardina/archive/2008/01/30/check-intersection-of-two-date-ranges-in-sql.aspx#481669</link><pubDate>Wed, 20 May 2009 04:49:18 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481669</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Thanks guys. &amp;nbsp;This one is a mind-bender, and your postings saved me hours of work!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481669" width="1" height="1"&gt;</description></item><item><title>ok</title><link>http://bloggingabout.net/blogs/egiardina/archive/2008/05/22/asp-menu-control-and-sitemap-selected-item-must-match-exact-url.aspx#481562</link><pubDate>Fri, 24 Apr 2009 03:15:16 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481562</guid><dc:creator>wow gold</dc:creator><description>&lt;p&gt;good article , I added you in the ‘Liked’ category.. thanks for sharing the article!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=481562" width="1" height="1"&gt;</description></item><item><title>Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/04/11/failed-to-enable-constraints-error-and-the-zen-of-datasets.aspx#476759</link><pubDate>Sun, 09 Nov 2008 17:56:08 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:476759</guid><dc:creator>Left Brain Logic</dc:creator><description>&lt;p&gt;Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=476759" width="1" height="1"&gt;</description></item><item><title>Juju : Find Intersection of Two Date Ranges</title><link>http://bloggingabout.net/blogs/egiardina/archive/2008/01/30/check-intersection-of-two-date-ranges-in-sql.aspx#469829</link><pubDate>Tue, 29 Jul 2008 16:16:02 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:469829</guid><dc:creator>Juju : Find Intersection of Two Date Ranges</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Juju : Find Intersection of Two Date Ranges&lt;/p&gt;
&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=469829" width="1" height="1"&gt;</description></item><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#464682</link><pubDate>Thu, 10 Jul 2008 19:43:29 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:464682</guid><dc:creator>Diana Rhoades</dc:creator><description>&lt;p&gt;I need to put a parameter in a report in two ways: one is Start Account and End Account (2 parameters). The other is an Account List where they put in a string delimited list of non-contiguous account numbers. Do you know of an example on the web where something similar has been done or have any other thoughts about this? &lt;/p&gt;
&lt;p&gt;My primary dataset is built by a somewhat complex SQL code that ends with a table with no name. So I don&amp;#39;t know how to query on that and get DISTINCT(account) and I don&amp;#39;t know if this method above gives them the two options they need. Obviously my SQL would change but I need to set up the new Account List parameter before I know how to change my SQL.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;diana.rhoades@agvantis.com&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=464682" width="1" height="1"&gt;</description></item><item><title>re: SQL Server Reporting Services - Optional Parameters</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/06/26/sql-server-reporting-services-optional-parameters.aspx#461980</link><pubDate>Tue, 01 Jul 2008 13:24:03 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:461980</guid><dc:creator>MRM</dc:creator><description>&lt;p&gt;HI, &lt;/p&gt;
&lt;p&gt;I have a column which gives the status of the employee. This column contains null values too.&lt;/p&gt;
&lt;p&gt;now the parameter passes null also as one of the status. how to fetch data from the table using this parameter?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=461980" width="1" height="1"&gt;</description></item><item><title>re: "Failed to Enable Constraints" Error, and the Zen of DataSets</title><link>http://bloggingabout.net/blogs/egiardina/archive/2007/04/11/failed-to-enable-constraints-error-and-the-zen-of-datasets.aspx#459985</link><pubDate>Sat, 07 Jun 2008 13:34:08 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:459985</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Also, Dave Chamberlain&amp;#39;s suggestion is right on the money: &amp;nbsp;check your &amp;quot;default value&amp;quot; properties for each column name in the TableAdapter GUI. &amp;nbsp;Set them to a default value where possible. &amp;nbsp;As Dave mentioned, the properties default to &amp;quot;throwing an exception&amp;quot; and for the string values you can set that to &amp;quot;empty.&amp;quot; &amp;nbsp;That worked for my situation, in addition to setting my default integer values as 0. &amp;nbsp;:)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=459985" width="1" height="1"&gt;</description></item></channel></rss>