Sql Server driver database interface (DBI) driver for R. This is a DBI-compliant Sql Server driver based on the System.Data.SqlClient.
82
stars
30
forks
source link
Passing connection string between R and .NET is failing #45
Open
ruaridhw opened 6 years ago
Connection strings such as
server\instance
(localdb)\v11.0
domain\username
are all valid for SQL Server however R requires that
\
are escaped and .NET does not.eg.
is a valid connection string in R.
This breaks when connections are passed as raw strings to .NET through
SqlBulkWrite
andSqlBulkCopy
instead of connection objects.Possible fix is to simply strip escaped backslashes prior to passing the connection string to .NET in
dbBulkCopy
anddbBulkWrite
.