I would first try to connect some way without Tidier (and then you might only need TiderDB):
Also you’re doing something more than me, since I get less specific error message:
julia> using Tidier
julia> using ODBC
julia> db = DB.connect(:mssql, "Driver={ODBC Driver 17 for SQL Server};Server=my.sqlserver=Reporting;Trusted_Connection=yes;")
ERROR: UndefVarError: `DB` not defined
Something like this errors for me (expectedly) but should work for you:
julia> julia> con = ODBC.Connection("Driver={ODBC Driver 17 for SQL Server};Server=my.sqlserver=Reporting;Trusted_Connection=yes;") # or similar to ODBC.Connection("Driver=ODBC Driver 17 for SQL Server;SERVER=ip#,DATABASE=dbname,UID=username,PWD=passwrod")
ERROR: 01000: [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found
You might want to make sure if you have latest versions with st
(though I doubt it was the problem), I noticed I didn’t have latest (and ironically trying to fix downgraded):
pkg> add Tidier@v1.4.0
⌅ [4acbeb90] ↓ Stipple v0.30.7 ⇒ v0.28.14
[2b41e42f] ↑ StippleMarkdown v0.0.1 ⇒ v0.2.0
[f0413319] ↑ Tidier v1.3.0 ⇒ v1.4.0
⌅ [86993f9b] ↓ TidierDB v0.4.1 ⇒ v0.1.9
Updating `~/Manifest.toml`
...
⌅ [458c3c95] ↓ OpenSSL_jll v3.0.15+1 ⇒ v1.1.23+1 [and many more than this, what I don't like about Julia's defaults]
pkg> add TidierDB@v0.4.1
Resolving package versions...
Installed JuliaFormatter ─ v1.0.61
Updating `~/Project.toml`
⌃ [f0413319] ↓ Tidier v1.4.0 ⇒ v1.3.0
[86993f9b] ↑ TidierDB v0.1.9 ⇒ v0.4.1
...
I’m not exactly sure what’s blocking, I see in “[compat]” (and should be ok?): TidierDB = “0.1, 1”:
(pharaldsson) pkg> add TidierDB@v0.4.1 Tidier@v1.4.0
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package TidierDB [86993f9b]:
TidierDB [86993f9b] log:
├─possible versions are: 0.1.0-0.4.1 or uninstalled
├─restricted to versions 0.4.1 by an explicit requirement, leaving only versions: 0.4.1
└─restricted by compatibility requirements with Tidier [f0413319] to versions: 0.1.0-0.1.9 — no versions left
└─Tidier [f0413319] log:
├─possible versions are: 0.3.0-1.4.0 or uninstalled
└─restricted to versions 1.4.0 by an explicit requirement, leaving only versions: 1.4.0
I think on Windows you have ODBC preinstalled (the non-Julia support), elsewhere you also likely need to do something like (I even gave up trying to set up in R…):
$ apt-get install unixodbc-dev