From d4a71a20572b1ac0bc550108bfb5652a1b95831e Mon Sep 17 00:00:00 2001 From: Simon Shanks <59612559+sshanks-kx@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:50:11 +0100 Subject: [PATCH] changed driver name for MS Access windows typically uses driver called "Microsoft Access Driver (*.mdb, *.accdb)" --- c/odbc.k | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/odbc.k b/c/odbc.k index 85867bc..bed2191 100644 --- a/c/odbc.k +++ b/c/odbc.k @@ -2,7 +2,7 @@ h:();`open1`close1`eval1`fkeys1`keys`tables`views{.odbc[x]:`odbc 2:(`$(-"1"=*|$x)_$x;y)}'2 1 3 2 2 1 1; d:`$":",$["Windows_NT"~getenv`OS;getenv[`commonprogramfiles],"/odbc/data sources";"/etc/ODBCDataSources"] -o:`mdb`mdf!("driver=Microsoft Access Driver (*.mdb);dbq=" +o:`mdb`mdf!("driver=Microsoft Access Driver (*.mdb, *.accdb);dbq=" "driver=sql server;server=(local);trusted_connection=yes;database=") open:{$[~@x;[s:last x;x:*x];s:0];if[~r:@[open1[;s];$[0<@x;x;1=#p:`\:x;x;`dsn~a:*|p;";"/:1_0:$[@!f:`$":",$x;f;`/:d,x];o[a],-4_$x];{e::x;0}];'e];*|h,:r} close:{if[~x in h;'`invalid];h_:h?x;close1 x}