Hi, MSQL node converts the "&" into "&" in a text field.
Here is the code in the MSSQL node:
INSERT INTO [mrs_Work]
(PrjNo, ProjectName)
VALUES (
'{{{payload.PrjNo}}}',
'{{{payload.ProjectName}}}'
)
The inbound field msg.payload.ProjectName contains - for instance" Integrated Plan & Schedule - which then is stored in MSSQL as Integrated Plan & Schedule
@Steve-Mcl - found my problem - mybad, I had a text string inserted with '{{x}}', instead of '{{x}}}' in the node.
I am doing bulk'ish upload, 9300 records, did not know there were a beta solution - I came over the problem by batching in batches of 1000 - once you come ou of beta - I will use that rather. the 10,000 records are growing ...
Bulk insert is out of beta. Are you running v0.7.1?
Also, are the updates/inserts coming from free text? Using mustache is vulnerable to SQL injection hacks, you would be better off taking my advice about using parameters or stored procedure.
Just upgraded to 0.7.1 - okay - did not know - let me refactor to use Bulk - right now I package an array of 1000 objects, then through them at a Spit note - feed them into the MSSQL node - one at a time, 2 seconds later the next 1000, and so on, but still getting niggling errors.
Let me see how to do that - and get rid of mustaches....
Okay to download in a spreadsheet.... but not an end-point - as then I have access to the data. Wait until they find out I am pushing it into SQL .... from the spreadsheet.......
Now not sure how I will use BULK. Can I point a 10,000 msg.payload formatted in JSON, array with 10,000 objects at it too? Do not want to download a spreadsheet from ERP, then by hand convert that into CSV, with all the problems with commas in fields, and then point a CSV to the MSSQL node. But let me look into your examples to see if such solutions exists.