ncss-tech / soilDB

soilDB: Simplified Access to National Cooperative Soil Survey Databases
http://ncss-tech.github.io/soilDB/
GNU General Public License v3.0
83 stars 19 forks source link

ODBC Drivers on USDA Computers #165

Closed brownag closed 3 years ago

brownag commented 3 years ago

Note that we have a "new" (to us) ODBC driver available in the ODBC Data Source Administrator: ODBC Driver 13 for SQL Server . It can be used to connect to the NASIS local database.

image

It appears the old one we have (which is still pretty new to us) is from 2011 and the new one from 2015, if I am not mistaken. Up 'till relatively recently we were using "SQL Server" which is even older still (2006?). I believe Microsoft ODBC Driver 17 for SQL Server is the latest (which at least I do not currently have)

image

Notably this resolves some "Invalid Descriptor" errors with querying tables/specific fields from the NASIS database with some tools such as nanodbc library, the driver used in the {odbc} R package.

We are planning to move to {DBI} and {odbc} as the primary database interface for NASIS queries in {soilDB} -- see #149.

I am going to update the "ODBC connection to local NASIS guide" images etc.

brownag commented 3 years ago

A couple images and some of the instructions from http://ncss-tech.github.io/AQP/soilDB/setup_local_nasis.html have been updated to reflect this new driver version.