Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
what is the best way to perform multiple inserts with tedious nodeJS

what is the best way to open and close connections when multiple inserts are made, through a stored procedure with tedious

        try {
  let conn = await Con.create();
            for (let i = 0; i < parameters.length; i++) {
                await conn.queryExec("PRO_insertValuesClients", parameters[i]);
            }
         
            conn.end();

the problem in this way that sometimes i get the error, I don't understand what is causing the error

Failed to connect to 10.78.56.21:1433 - connect EADDRINUSE 10.78.56.21:1433 


     

I wanted to try this way, but I don't know if it is the best or if there is another way, if you can advise me Thank you

 try {
            for (let i = 0; i < parameters.length; i++) {
let conn = await Con.create();
                await conn.queryExec("PRO_insertValuesClients", parameters[i]);
    conn.end();
            }
     
 
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!