Closed belgianbeer closed 1 year ago
Works for me
Unfortunately, I do not have access to an azure DB so I used a linux docker image
I created another server (not on Azure) and prepared a docker environment. So I started the docker version of Node-RED and tested it. After starting Node-RED docker, I added "node-red-contrib-mssql-plus" and loaded and executed the demo. "Create demo_device_parameters_table" and "Drop demo_device_parameters_table" worked fine. But "bulk insert -> demo_device_parameters_table" gave the same error.
I created another server (not on Azure)
Can you link to the exact image you used please
I used the following command line when starting Node-RED:
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red
It's probably https://hub.docker.com/r/nodered/node-red
I used the following command line when starting Node-RED:
docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered nodered/node-red
I was referring to Azure:
I created another server (not on Azure)
Can you link to the exact image you used please
as in when you created ANOTHER SERVER - which docker image did you use?
EDIT:
I am re-reading this again - I may be mixed up.
Are you STILL testing against the original DB (i.e. did you simply create another Node-RED) OR Did you create and test the first failing Node-RED instance against a different Azure/SQL Server?
However: Since I ss you are also using docker for Node-RED, that may be part of the problem. Are you in a position to test the bulk demo against your Azure DB with node-red running natively/on metal?
I will sort out the situation.
First reported configuration:
Second reported configuration:
I can also set up a metal server if needed. I'm thinking of using the first configuration in the project I'm currently working on, so I'd really like to resolve any issues with node-red-contrib-mssql-plus.
- I had a Debian 11 VM on my office server that I usually use, so I installed Docker on it.
It would be very useful to know if you could install Node-RED on the VM (this should work as "on metal") and try again.
And since your VM is Debian, can I ask that you install Node-RED using the official installer script with --node18
appended to the command. see here: https://nodered.org/docs/getting-started/raspberrypi#installing-and-upgrading-node-red
I have prepared a Debian Bullseye metal server. After that I installed nodejs 18.18. I installed Node-RED using the Raspberry Pi script in that URL. I ran the same test after starting Node-RED and got the same error regarding bulk insert. I will continue to try changing the nodjs version to 16.
It worked! But, It wat not my mistake. The example was bad. If I use the sample as is, the type of the fifth parameter in the bulk insert flow was NVarChar(200). But I think this should be a Float.
I created a pull request for fix this issue.
Thank you!
I installed Nod-RED with node-red-contrib-mssql-plus.
After installed node-red-contrib-mssql-plus, I tested the "Bulk demo.json". (BTW, this example looks not in module. I got it from repository of Github.)
"Create demo_device_parameters_table" and "Drop demo_device_parameters_table" work well. But inject "raws:1000" has error. Here is error message.
Simple INSERTs and SELECTs are working fine.
My environment as follows.
Am I misunderstanding something?