I can’t execute a simple query. This is my code:
Dim worldLayer As ShapeFileLayer = New ShapeFileLayer(Server.MapPath("~\Mapas\espes2________pi.shp"))
worldLayer.Open()
Dim dataTable As New DataTable
dataTable = worldLayer.ExecuteSqlQuery(“Select * from espes2________pi”)
worldLayer.Close()
But always this mistake appears in ejecucuon: The engine of database Microsoft Jet(Jet set) could not find the object ‘ES7253~1’. One assure that the object exists, and that he has written the name and the route of access to the object correctly.
Problems with SQL query's
Carlos,
I made a test and seem this method works fine. Here is the code as well as the result snapshot.
So I think the problem exists in your data. Can you upload your dbf file so we can have a further investigation? You can remove the data inside and leave only one row if the data is confidential.
Ben.
104-SQLQueryForCarlos.zip (103 KB)
You are rigth. The problem was the dbf file. In concrete the name of the file that was very long or the aplication not allow the character "_". I don't know but i changed the name of the file and it works fine!!!!
Thanks you very much Ben!!!
You are welcome Carlos. Hope you have a great application with Map Suite!
Ben.