Code Monkey home page Code Monkey logo

Comments (4)

detule avatar detule commented on August 21, 2024

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.

erikking avatar erikking commented on August 21, 2024

@detule

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.

detule avatar detule commented on August 21, 2024

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.

erikking avatar erikking commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.