Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

227
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda