Using MS Access as the query interface to Oracle Spatial

Using MS Access as the query interface to Oracle Spatial

Like many people, I cut my teeth in the database world using MS Access.  And, early in my career, I was much more comfortable writing queries using Access’s sql GUI than I was writing sql in a command prompt.  As such, it was common practice for me to make ODBC links to my Oracle Spatial database, and use Access as the interface to do the actual querying.

In the case of Oracle Spatial though, there was one problem – when I tried to link to a table that had a column of sdo_geometry data type, I got this error:

Invalid field definition ‘GEOMETRY’ in definition of index or relationship

Using MS Access as the query interface to Oracle Spatial

The solution?… you’re gonna laugh.  Make a view in Oracle that excludes the geometry column and connect to that instead of the base table.

Related articles

FARL_Divider_Graphic-cropped
Deploying ArcGIS Portal and Your First Web Applications with the LGIM
Use your mobile phone to find the best fishing hotspots near you
Port of San Francisco Uses Enterprise GIS to Prepare for Sea Level Rise Caused by Climate Change