Comments (4)
Hi @erikking
Can you provide some information about your environment ( os, driver, package:odbc
and package:DBI
version ).
With 1.5.0 from CRAN I can't replicate your issue - either that or I don't understand the problem.
> conn@info
...
$dbms.name
[1] "Microsoft SQL Server"
...
$drivername
[1] "libmsodbcsql-17.10.so.6.1"
...
> sessionInfo()
...
other attached packages:
[1] odbc_1.5.0
...
loaded via a namespace (and not attached):
...
[5] DBI_1.2.2
> dbGetQuery(conn, "SELECT DB_NAME()")
1 deleteme
> DBI::dbListFields(conn, DBI::Id(schema="testschema", table = "tbl"))
[1] "CustomerUUID" "BranchNumber" "ArticleNumber" "ValidOn"
[5] "Comment"
from odbc.
Thanks for your reply. Please see my environment
> conn@info
$dbms.name
[1] "Microsoft SQL Server"
$drivername
[1] "SQLSRV32.DLL"
$odbc.version
[1] "03.80.0000"
$driver.version
[1] "10.00.17763"
$odbcdriver.version
[1] "03.52"
attr(,"class")
[1] "Microsoft SQL Server" "driver_info" "list"
sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 17763)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.936 LC_CTYPE=English_United States.936 LC_MONETARY=English_United States.936
[4] LC_NUMERIC=C LC_TIME=English_United States.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] odbc_1.3.4 DBI_1.2.3
from odbc.
Hi:
BLUF: Can you test with a recent version of package:odbc
- I think the version you are using is ~ 2 years old.
I think part of the issue is that you are using a very up-to-date packge:DBI
, and somewhat dated package:odbc
. At some point, there was a change to the DBI::Id
API ( and I think your recent version includes this change ). I think it necessitates using a relatively recent package:odbc
that matches those changes.
Let me know what you find with an up-to-date package:odbc
. If still reproducible, we can dive further, though to be perfectly honest SQLSRV32.DLL
( legacy MS Access ODBC adapter?) is not a driver we normally support in the issue section.
from odbc.
Got it. I updated odbc to latest version 1.5.0, then it works for either of driver SQLSRV32.DLL
and msodbcsql18.dll
.
Thanks very much.
from odbc.
Related Issues (20)
- set up CI/CD for databricks
- Writing to datetime2 column in SQL Server with odbc HOT 1
- `set_odbcsysini()` doesn't do anything
- Determine DATETIME2 precision based on parameter description
- GHA failure on macOS
- configure snowflake error logs in CI
- DBI::dbWriteTable fails when useNativeQuery = TRUE HOT 2
- `odbc::databricks()` does not detect Workbench-managed credentials when rendering Quarto/RMarkdown docs
- new WARNING on CRAN `r-devel-linux-x86_64-fedora-clang` HOT 1
- CRAN NOTE on installed package size on macOS HOT 2
- CRAN WARNINGs on M1 Macs re: `-Wdeprecated-declarations` HOT 4
- Release odbc 1.5.0
- Oracle - dbWriteTable not working with date and timestamp HOT 4
- MSSQL Server dbWriteTable fails without batch_row = nrow(value) HOT 6
- Allow `uid` to be specified when using `authenticator="externalbrowser"` HOT 3
- Package hex logo HOT 4
- DBI::dbConnect + odbc::databricks(): DATABRICKS_HOST value issue
- Include additional details in Databricks user agent
- Different behaviour when using dbWriteTable() on Snowflake HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odbc.