<?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 : COUNT_BIG in PassThruESQL doesn&#039;t work</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : COUNT_BIG in PassThruESQL doesn&#039;t work</description>
  <pubDate>Sat, 11 Apr 2026 11:09:04 -700</pubDate>
  <lastBuildDate>Fri, 07 Aug 2009 21:23:17 -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=1417</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>COUNT_BIG in PassThruESQL doesn&#039;t work : Yeah, I saw that too (I&amp;#039;m...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1417&amp;PID=5133#5133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1417<br /><strong>Posted:</strong> 07-Aug-2009 at 9:23pm<br /><br /><P>Yeah, I saw that too (I'm using Sql Server 2008) but didn't realize you actually need "SqlServer.COUNT_BIG" and not just "COUNT_BIG".&nbsp; That fixed it. </P><DIV>Thanks Kim.</DIV>]]>
   </description>
   <pubDate>Fri, 07 Aug 2009 21:23:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1417&amp;PID=5133#5133</guid>
  </item> 
  <item>
   <title>COUNT_BIG in PassThruESQL doesn&#039;t work : I find the Entity SQL documentationa...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1417&amp;PID=5132#5132</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> 1417<br /><strong>Posted:</strong> 07-Aug-2009 at 5:27pm<br /><br />I find the Entity SQL documentation&nbsp;a little unclear.&nbsp; You should use BigCount()&nbsp; for a non-database vendor&nbsp;specific implementation, or if using SQL Server, then SqlServer.Count_Big() will work.<DIV></DIV><DIV></DIV><a href="http://msdn.microsoft.com/en-us/library/bb738514.aspx" target="_blank"><DIV>&nbsp;</DIV><DIV>http://msdn.microsoft.com/en-us/library/bb738514.aspx</A></DIV><DIV><a href="http://msdn.microsoft.com/en-us/library/bb399163.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb399163.aspx</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 07 Aug 2009 17:27:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1417&amp;PID=5132#5132</guid>
  </item> 
  <item>
   <title>COUNT_BIG in PassThruESQL doesn&#039;t work : I&amp;#039;m trying to use a PassThruESQLQuery...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1417&amp;PID=5131#5131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=543" rel="nofollow">pk55</a><br /><strong>Subject:</strong> 1417<br /><strong>Posted:</strong> 07-Aug-2009 at 4:06pm<br /><br /><P>I'm trying to use a PassThruESQLQuery that does a COUNT_BIG on an entity.&nbsp; COUNT_BIG is being used&nbsp;since it&nbsp;returns a BIGINT, instead of COUNT, which returns just an INT.&nbsp; </P><DIV>SELECT VALUE COUNT_BIG(u.ObjectID) FROM MyEntitySet AS u </DIV><DIV>&nbsp;</DIV><DIV>The same query will work if I use COUNT but not with COUNT_BIG (which is supposed to be supported in Entity Framework).&nbsp; It just throws the error below.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>I'm not sure if this is a DevForce problem or Entity Framework problem.&nbsp; I'm using the official Silverlight 3 and DevForce Silverlight releases.</DIV><DIV>&nbsp;</DIV><DIV>Any thoughts?</DIV><DIV>&nbsp;</DIV><DIV>IdeaBlade.EntityModel.Server.EntityServerErrorHandler:CreateMessageFault"&gt;Caught exception: <BR>System.Data.EntitySqlException: 'COUNT_BIG' cannot be resolved into a valid type constructor or function., near function, method or type constructor, line 1, column 23.<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticResolver.ResolveNameAsStaticMethodOrFunction(MethodExpr methodExpr, TypeUsage&amp;amp; constructorType, TypeUsage&amp;amp; staticMethodType, IList`1&amp;amp; functionType)</DIV><DIV>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.ConvertStaticMethodOrFunction(MethodExpr methodExpr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.ConvertMethodExpr(Expr expr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.Convert(Expr astExpr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.ProcessGroupByClause(DbExpressionBinding source, QueryExpr queryExpr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.ConvertQuery(Expr expr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.Convert(Expr astExpr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.ConvertRootExpression(Expr astExpr, SemanticResolver sr)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.SemanticAnalyzer.Analyze(Expr astExpr, DbCommandTree commandTree)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.CqlQuery.AnalyzeSemantics(DbCommandTree builderTree, Expr astExpr, Perspective perspective, ParserOptions parserOptions, Dictionary`2 parameters, Dictionary`2 variables)<BR>&nbsp;&nbsp; at System.Data.Common.EntitySql.CqlQuery.Compile(DbCommandTree builderTree, String queryText, Perspective perspective, ParserOptions parserOptions, Dictionary`2 parameters, Dictionary`2 variables)<BR>&nbsp;&nbsp; at System.Data.Objects.EntitySqlQueryState.Parse(DbCommandTree parseTree)<BR>&nbsp;&nbsp; at System.Data.Objects.EntitySqlQueryState.GetResultType()<BR>&nbsp;&nbsp; at System.Data.Objects.Internal.ObjectQueryState.get_ResultType()<BR>&nbsp;&nbsp; at System.Data.Objects.ObjectQuery.GetResultType()<BR>&nbsp;&nbsp; at lambda_method(ExecutionScope , Object , Object&#091;&#093; )<BR>&nbsp;&nbsp; at IdeaBlade.Core.MemberInfoFns.FastMethodInvoke(Object instance, MethodInfo method, Object&#091;&#093; args)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.Edm.EdmQueryExecutor.GetResultTypeUsage(IQueryable objectQuery)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.Edm.PassthruEsqlQueryExecutor.ExecuteQuery(PassthruEsqlQuery query)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.Edm.PassthruEsqlQueryExecutor.ExecuteCore(IEntityQuery query, IDataSourceKey edmKey)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.Edm.PassthruEsqlQueryExecutor.Execute(IEntityQuery query, IDataSourceKey edmKey)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.Server.EntityServer.Fetch(IEntityQuery query, IDataSourceKey dsKey)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.Server.EntityServer.Fetch(SessionBundle sessionBundle, IEntityQuerySurrogate surrogate)<BR>&nbsp;&nbsp; at SyncInvokeFetch(Object , Object&#091;&#093; , Object&#091;&#093; )<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object&#091;&#093; inputs, Object&#091;&#093;&amp;amp; outputs)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp;amp; rpc)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp;amp; rpc)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp;amp; rpc)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp;amp; rpc)<BR>&nbsp;&nbsp; at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 07 Aug 2009 16:06:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1417&amp;PID=5131#5131</guid>
  </item> 
 </channel>
</rss>