Closed jtisack closed 3 months ago
Name | Link |
---|---|
Latest commit | d862c696422b1a88b728a5747fb32076c6e8227a |
Latest deploy log | https://app.netlify.com/sites/bcputility/deploys/65f213b88ee07500090623ff |
@jtisack just want to let you know this is on my radar. I just need to find time to get a test environment set up.
@jtisack, should all be sorted out now. You can try the devel branch with the changes and see if it it working for your config.
devtools::install_github("tomroh/bcputility@devel")
@tomroh We tested the devel branch internally and it's all working perfectly. Thanks!
@jtisack Great! Thanks for the help! Will be on CRAN in the next few weeks.
This PR includes two changes we (@sclewis23) found necessary to make the package compatible with our environment (Linux client and Azure Synapse database).
Synapse will only interface with bcp and sqlcmd if QUOTED_IDENTIFIERS is set to ON via CLI flags. Currently bcputility allows passing additional arguments to bcp CLI but not sqlcmd. This change adds a single argument to makeConnectArgs() that adds the flag to all calls to both bcp and sqlcmd.
We found that adding brackets around table names ("quoting") in the bcp CLI causes an issue when importing data. This change adds an argument to bcpImport() that disables that functionality.
Documentation on the added bcp/sqlcmd arguments is here: https://learn.microsoft.com/en-us/sql/tools/bcp-utility?view=sql-server-ver16#-q https://learn.microsoft.com/en-us/sql/tools/sqlcmd/sqlcmd-utility?view=sql-server-ver16&tabs=go%2Clinux&pivots=cs1-bash#-i