You can clone with
No description provided.
This is something that has been discussed, but I don't currently have a windows development environment to work on this. Not sure if @w1nk does either. Patches welcome.
You could try installing node-gyp (npm install -g node-gyp), python 2.7, Visual C++ Express, then download and extract https://github.com/wankdanker/node-odbc/zipball/v0.4.1. Then try running node-gyp configure build in the extracted directory. If it works then yeah, all we need to do is compile. If not, then we need to debug and implement platform specific changes.
It currently fails on my system, but that may be because the windows system I have access to can not be rebooted at the moment and the Visual C++ install can't complete as a result.
I do have a use case for this on Windows coming up, so this may be something I will be working on more in the near future.
+1 to get odbc running cross-platform. I develop on Mac, deploy on both Windows and *nix servers. Cross-platform modules are nearly essential for my projects.
Tried compiling on windows got a few errors.
Great news, I have successfully built this on Windows and it works. There is only one issue which is that Windows does not have a strptime() function. Hopefully, I will be able to get everything updated in the next few days.
For anyone who has a Windows build environment (possibly @orenz ), try installing with npm install odbc. Make sure that you have previously installed node-gyp globally with npm install -g node-gyp.
npm install odbc
npm install -g node-gyp
I haven't tested extensively yet and performance doesn't look great on my MSSQL server.
If you find bugs or additional requests, please open a separate issue. As soon as I hear confirmation that this is working for others on Windows, I will be closing this issue.
IS there a windows version you can share? Or specific instructions for a newbie?
I do not have a recent version of the windows version to share. The next time I build one, I will try to bundle it up and share a link here. I wouldn't count on this being any time soon, though.
I installed Python 2.7 and Visual Studio Express 2013 for Desktop and was able to build on Windows 7 using node-gyp with no problem. I think the issue can be closed.
Thanks, Pete. Yeah, this is fixed.
As long as you have Python 2.7 and Visual Studio Express installed you can install node-odbc with:
C:\project> npm install odbc