Our application allows the user to add SQL layers to the map, and one of the things we do is to get the bounding box (using GetBoundingBox() on the MSSQL2008FeatureLayer class) and this seems to work well, but for layers with large numbers of features the call to GetBoundingBox() seems to be very slow. For example we have a Public Land Survey layer with over 200,000 features and the call to GetBoundingBox() takes upwards of 20 seconds to execute. Does this function not use the spatial index. I was wondering if the extent of the layer couild not be gotten directly from the sys tables.
Thanks,