Hi Worshond, to make a selection in your MG solution you should use 'MgFeatureQueryOptions' object in order to filter your features in map, after execute your query in SQL server and get your value, use this value to filter your features as following:
MgFeatureQueryOptions districtQuery = new MgFeatureQueryOptions(); districtQuery.SetFilter("landID = '" + value + "'"); and to display the feature on map use 'MgFeatureReader' object to read the data source and get X,Y for your target feature then use this code to zoom to uour feature mapFrame.ZoomToView(" + XCoord + "," + YCoord + ", 2500 ,true) Regards, ----- http://gsg-eg.com http://n2.nabble.com/file/u111068/head2.jpg GeoService -- View this message in context: http://n2.nabble.com/SQL-Server-2008-Query-tp3348261p3349222.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapguide-users