<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Stored procedure nullable parameters</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Stored procedure nullable parameters</description>
  <pubDate>Tue, 28 Apr 2026 22:39:43 -700</pubDate>
  <lastBuildDate>Wed, 28 Oct 2009 09:55:19 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1532</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Stored procedure nullable parameters : This is a bug which has been fixed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1532&amp;PID=5696#5696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1532<br /><strong>Posted:</strong> 28-Oct-2009 at 9:55am<br /><br /><P>This is a bug which has been fixed in current bits.</P>]]>
   </description>
   <pubDate>Wed, 28 Oct 2009 09:55:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1532&amp;PID=5696#5696</guid>
  </item> 
  <item>
   <title>Stored procedure nullable parameters :   I have even created a sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1532&amp;PID=5683#5683</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=611" rel="nofollow">sathishs</a><br /><strong>Subject:</strong> 1532<br /><strong>Posted:</strong> 27-Oct-2009 at 4:54am<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV>I have even created a sample project and I am facing the same issue.<DIV>&nbsp;</DIV><DIV>I have create a stored procedure scripted as <FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>Create</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>procedure</FONT></FONT><FONT size=2> &#091;EmployeeTest&#093; </P><P>@Beginning </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>null,</FONT></FONT><FONT size=2> @Ending </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>=</FONT></FONT><FONT size=2> </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>null</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>AS</P><P>SELECT</FONT></FONT><FONT size=2> </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>*</P></FONT></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>FROM</FONT></FONT><FONT size=2> Employee </P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>WHERE</FONT></FONT><FONT size=2> EmployeeID </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>Between</FONT></FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2><FONT color=#ff00ff size=2>isnull</FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>@Beginning</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>,</FONT></FONT><FONT size=2>0</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>)</FONT></FONT><FONT size=2> </FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>And</FONT></FONT><FONT size=2> </FONT><FONT color=#ff00ff size=2><FONT color=#ff00ff size=2>Isnull</FONT></FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>(</FONT></FONT><FONT size=2>@Ending</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>,</FONT></FONT><FONT size=2>10</FONT><FONT color=#808080 size=2><FONT color=#808080 size=2>)</P><DIV></DIV><FONT size=2><P></FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>DomainModelEntityManager</FONT></FONT><FONT size=2> _manager = </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>DomainModelEntityManager</FONT></FONT><FONT size=2>.DefaultManager;</P><DIV></DIV><DIV>_manager<FONT size=2>.EmployeeTest(0, 5); //returns 5 records</DIV><DIV></DIV><DIV>// _manager<FONT size=2>.EmployeeTest(null, null); - Throws an errors as mentioned in the previous post.</FONT></DIV><DIV>&nbsp;</DIV><DIV>It would be better, If the IB framework gives the Exact parameter name instead of saying 'Value cannot be null'.</FONT></FONT></DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 27 Oct 2009 04:54:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1532&amp;PID=5683#5683</guid>
  </item> 
  <item>
   <title>Stored procedure nullable parameters : I am using SQLExpress and DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1532&amp;PID=5682#5682</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=611" rel="nofollow">sathishs</a><br /><strong>Subject:</strong> 1532<br /><strong>Posted:</strong> 27-Oct-2009 at 1:28am<br /><br /><P>I am using SQLExpress and DevForce winclient Version 5.2.2.0, License: EnterpriseWinClient, Express</P><P>I have a stored procedure with around 40 nullable parameters of string, bool, decimal and datetime type. This stored procedure retruns all records when these parameters are null(being executed in from SSMSE).</P><P>However When calling the same stored procedure with IdeaBlade Framework, I am getting an error as mentioned below.</P><P><FONT size=2><EM>Value cannot be null.<BR>Parameter name: value</EM></FONT></P><P><FONT size=2><EM>Stack Trace:<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception pException, Boolean pTryToHandle, PersistenceOperation pOperation)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteServerQuery(IEntityQuerySurrogate pEntityQuery)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.StoredProcFinder.Execute()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQuery(IEntityQuery query)<BR>&nbsp;&nbsp; at DomainModel.DomainModelEntityManager.USP_POHeaderSearch_Findall(String ShipCode, Nullable`1 NotInShipCode, String PONumber, Nullable`1 NotInPONumber, String Type, String OrderType, String Status, Nullable`1 NotInStatus, String ShipRef, Nullable`1 Year, String SupplierCode, String Subject, String PoolName, Nullable`1 Priority, String RececiveShip, Nullable`1 CheckAllRecShip, String DeliveryPort, String Storage, String StorageRef, String Account, Nullable`1 NotInAccount, Nullable`1 CCNO, Nullable`1 IsBlankCC, Nullable`1 IsLinkedCC, String InvNo, String Archived, String UserID, String Proponent, String ArticleNo, String PartNo, String ContractCode, Nullable`1 IsPartlyRec, Nullable`1 IsOrderOnly, Nullable`1 IsNOOrder, Nullable`1 IsInqWithQ, Nullable`1 IsInqWithOutQ, Nullable`1 IsFirstVerOnly, Nullable`1 IsMerged, Nullable`1 IsExDeleteItems, Nullable`1 IsDangerousGoods, Nullable`1 IsNotSetDateLabel, Nullable`1 POHEAD_BID_CLOSEFromDate, Nullable`1 POHEAD_BID_CLOSEToDate, Nullable`1 pohead_order_confFromDate, Nullable`1 pohead_order_confToDate, Nullable`1 POHEAD_DEL_SHIPFromDate, Nullable`1 POHEAD_DEL_SHIPToDate, Nullable`1 pohead_inv_recFromDate, Nullable`1 pohead_inv_recToDate, Nullable`1 POHEAD_JEDFromDate, Nullable`1 POHEAD_JEDToDate, Nullable`1 pohead_podateFromDate, Nullable`1 pohead_podateToDate, Nullable`1 pohead_del_dateFromDate, Nullable`1 pohead_del_dateToDate, Nullable`1 Pohead_rec_shipFromDate, Nullable`1 Pohead_rec_shipToDate, Nullable`1 Pohead_conf_recFromDate, Nullable`1 Pohead_conf_recToDate, Nullable`1 Pohead_snt_shipFromDate, Nullable`1 Pohead_snt_shipToDate, Nullable`1 pohead_latedeldateFromDate, Nullable`1 pohead_latedeldateToDate) in C:\Demo IB ShipNet.ERP.Procurement.Prototypes\DomainModel\DomainModel.ServerModelPOIB.Designer.cs:line 98<BR>&nbsp;&nbsp; at ShipNet.ERP.Procurement.Common.UI.frmPOOverview.btnIB_Click(Object sender, EventArgs e) in C:\Demo IB </EM></P><DIV></DIV><DIV></DIV><EM>PS: If i provide String.Empty for a string parameter, 0 for decimal and&nbsp; int parameter and DateTime.Min value for the above procedure. Stored procedure is called, but I will not be getting the desired results, since I am not passing null values.</EM><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Please Let me if I am missing something or this paritucular version does not support null values being passed as a stored procedure parameter. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Tue, 27 Oct 2009 01:28:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1532&amp;PID=5682#5682</guid>
  </item> 
 </channel>
</rss>