Thank you, Dominique. The sample works fine, but not my services. I've tried on: 1. SQL Server 2008 (ArcSDE 9.3.1) 2. SQL Server 2008 Express DB created with ArcGIS 10.
I'm using ArcGIS 10 with Microsoft SQL Server 2008. I have never been able to get a FeatureLayer to use the values in ObjectIDs, it ignores them completely and only uses the Where field for queries.
I just wanted to confirm that this wasn't an isolated incident and I would be interested in getting this working.