Hi John,
As you know, QueryTools.ExecuteQuery requires Microsoft Access Driver to work. Windows system supports 32bit version Microsoft Access Driver default, and the 64bit driver isn’t supported. If users want to 64bit driver, users need to install 64bit Microsoft Access Database Engine Redistributable.
Microsoft Access Database Engine 2010 Redistributable: https://www.microsoft.com/en-US/download/details.aspx?id=13255
Microsoft Access Database Engine 2013 Redistributable: https://www.microsoft.com/en-us/download/details.aspx?id=39358
Microsoft Access Database Engine 2016 Redistributable: https://www.microsoft.com/en-us/download/details.aspx?id=54920
They are system runtime libraries and compatible with Microsoft Word.
If you want to use another implementation instead of OLEDB, you can overwrite ExecuteQueryCore function of FeatureSource. For example:
class CustomShapeFileFeatureSource : ShapeFileFeatureSource
{
protected override GeoDataTable ExecuteQueryCore(string sqlStatement)
{
// Your implementation.
}
}
class CustomShapeFileFeatureLayer : ShapeFileFeatureLayer
{
public CustomShapeFileFeatureLayer()
{
FeatureSource = new CustomShapeFileFeatureSource();
}
}
CustomShapeFileFeatureLayer layer = new CustomShapeFileFeatureLayer();
layer.QueryTools.ExecuteQuery("");
If you have any questions, please feel free to contact us.
Thanks,
Rex