Thomas Roh takes us through an oddity in R’s DBI library:
I ran into an issue the other day where I was tring to write a new table to a SQL Server Database with a non-default schema. I did end up spending a bit of time debugging and researching so I wanted to share for anyone else that runs into the issue. Using the
DBI::Id
function, allows you to specify the schema when you are trying to write a table to a SQL Server database.
Click through for the end result. I will say that the more I work with DBI, the more I’m tempted to keep using rodbc, at least when working with SQL Server. H/T R-Bloggers.
Comments closed