I'm looking for a way to query a feature class using a spatial intersection and a built up where clause in order to produce reports. The data that is returned will likely exceed the service limit of features that are allowed to be returned and I was wondering if there was a way to do this in some way where a query was executed on the server that populated a database table with the ObjectIds of the results so I can output the data in Crystal Reports within an ASP.net web app. I would also be willing to execute a custom query if I knew how the spatial filtering worked on the database, i.e. how the SQL statement is generated from a QueryTask call.