I have a project that would be perfect for Node.js, but it has to connect to a ODBC database and it has to run on windows. I see ODBC modules for nodejs on linux, but not windows. Does anyone have any suggestions on how to do this?
The node-odbc sais it is unixODBC for Linux, but it works in Windows too, I am using it here. It just does not include the binaries, so you need to install windows-build-tools and node-gyp before installing node-odbc, in order to build the binaries.
npm i -g windows-build-tools
npm i -g node-gyp
npm i odbc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With