Select to view content in your preferred language

FGDB API not respecting Select clause of SQL

4329
10
06-18-2012 08:24 AM
MarkTurnbull
Regular Contributor
I am writing some code that will run an SQL query against the FGDB using the FGDB API 1.2. The SQL will be defined at runtime. I am finding that the EnumRows class is not filtered on the fields in the select clause of the SQL statement, the EnumRows always has attributes for all fields even with a SQL statement like "SELECT CITY_NAME, POP1990 FROM Cities WHERE TYPE = 'city' AND OBJECTID < 10". Because the EnumRows class's fields are not filtered, the GetFieldInformation returns information about all fields in the table not the fields in the select clause.

Am I missing something in the use of the SQL comnponents of the API? If not, how do I determine field names, types, etc. on a SQL query supplied at runtime?

Thanks
0 Kudos
10 Replies
ErikLanhammar
Esri Contributor
Are there any updates concerning the capability of FGDB API to handle joins in SQL statements?

Rgds,
/E
0 Kudos