Another day, another Data Services issue. This time the error message was “Too many table names in the query. The maximum allowable is 256.” Turns out this is caused by my organization’s use of Sql Server 2005 rather than Sql Server 2008. Unfortunately, it’s not very feasible to reduce the number of tables being used [...]
Posts Tagged ‘ado.net-data-services’
“Too many table names in the query.” ADO.NET Data Services
Posted in Uncategorized, tagged ado.net-data-services, sql server 2008, sql-server, sql-server-2005 on 2009/08/25 | Leave a Comment »
Does LINQ Support Composable “OR Queries”? (NOPE!)
Posted in Uncategorized, tagged ado.net-data-services, linq, linq to ado.net data services, union on 2009/08/25 | Leave a Comment »
Seems like any direction I turn, if I try to get very clever I hit a wall with ADO.NET Data Services.
It looks like Linq to ADO.Net Data Services doesn’t support expressions/predicate builder (see comments on Cameron MacFarland’s post for details), so this wouldn’t work for this situation – might just have to wait for Linq [...]
SqlCommand Timeout Exception with ADO.Net Data Services
Posted in Uncategorized, tagged entity-framework, ado-net, ado.net-data-services, timeout, SqlCommand, data-services, WCF on 2009/08/21 | Leave a Comment »
When my ADO.NET Data Services web service started throwing SqlCommand timeout messages I hit up Google and finally found a post in German(?) that pointed me in the right direction. The problem seems to be the Entity Framework Connection CommandTimeout, which can be easily modified overloading the OnStartProcessingRequest event.
When working with the ADO.NET Data Services [...]
Querying using DataServiceContext and DataServiceQuery
Posted in Uncategorized, tagged ado.net-data-services, DataServiceContext, DataServiceQuery, query on 2009/07/17 | 1 Comment »
Quick overview of the alternatives for querying using ado.net data services.
Use LINQ to ADO.Net Data Services to query the service. Again, since the DataServiceQuery is an IQueryable, you can use LINQ syntax to query it:
var query = (from p in svc.Posts
where p.PostID > 3
orderby p.PublishDate
select p).Skip(2).Take(2);
via Querying using DataServiceContext and DataServiceQuery – linyusen的专栏 – CSDN博客.
Debugging ADO.NET Data Services
Posted in Uncategorized, tagged ado.net-data-services, debug, exception, IncludeExceptionDetailInFaults, service, UseVerboseErrors, verbose on 2009/07/16 | 1 Comment »
My service is broke-a$….er I mean my friend is having issues with his code and this is the link I sent him.
By default, Data Services don’t return information on what’s wrong when you try to execute some code, for example an update, against it. This is understandable: if you open up a data service on [...]
$filter Query Option in ADO.NET Data Services
Posted in Uncategorized, tagged ado-net, ado.net-data-services, filter, query, service, web-service on 2009/07/16 | 1 Comment »
ADO.NET Data Services provides filtering options for free.
What can go in a $filter? The most basic thing to do is to test properties of the resources we’re returning, which you can access simply by name, like we have done above. Literals for things like strings and numbers use the same syntax as in the key [...]