• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Node.JS Insert multiple records into sql server in nodejs

A couple of years ago I wrote a ecommerce website and it worked great.
I recently came back to it and it didnt work at all.
The way sql server and nodejs has changed and is causing problems.
I could await different parts of setting up database.
Now that no longer works.
The current problem is if I use a loop to insert refcords into database.
If I input one record it works fine.
If I input more than one I get a connection lost error.
Its like sql is trying to write all teh records at once and getting in a mess.
Any clues as to why things have changed ?
Its currently jus ta big mess.
Top Bottom