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
Taking a Stroll Down the Road(map): Resource Instance Lifecycles in Arches V8
Taking a Stroll Down the Road(map): New Leaps in Prototyping
Taking a Stroll Down the Road(map): What Developers Need to Know