I tried to run a node.js code on Azure Web apps using msnodesql to Azure SQL Database, but it fails.
I checked the comment ( node.js + azure sql database ), but it didn't work yet.
Now I checked node version on Azure by the tool "console" on the site, it showed v4.2.3. I understand msnodesql ( https://www.npmjs.com/package/msnodesql ) now supports node v0.8 or v0.6.
I suspect that version mismatch of them may be the reason of the failure. I installed node v4.2.3 on my PC locally, then I could reproduce this problem with v0.6 and v0.8 msnodesql (sqlserver.node).
Does anyone have a workaround? I couldn't find a way to downgrade the Azure node.js.
(2016/1/20)
Thanks to @PeterPan, I can run the program on Azure with the module "tedious" finally. Thank you very much.
I didn't try, but I could specify Node.js version to use the module msnodesql, according to https://azure.microsoft.com/en-us/documentation/articles/nodejs-specify-node-version-azure-apps/#using-a-custom-version-with-azure-websites .
However, I still wonder which way is better, Node v4.2.3 with tedious, Node v4.2.3 with msnodesqlv8 (I coudn't make sure yet that it does work), or Node v0.8 with msnodesql/msnodesqlv8 .
I would like to discuss this in a different thread.