Questions tagged [tedious]

The Tedious Node module enables seamless interaction with Microsoft's SQL Server instances.

How to add multiple entries using Node.js and Tedious

I am currently working with an array of customer objects that I need to insert into a SQL database. These customer objects are retrieved from the request data. For this task, I am utilizing Tedious for handling the request and Tedious Connectionpool to ma ...

"Deleting a specific row from a SQL Server using Node.js: Step-by-Step Guide

Currently, my setup involves using nodeJs as the backend language and sql server as the database. While I have managed to delete whole table rows from the database successfully, I am facing a challenge when it comes to deleting a specific row. Here is the ...

Installing npm packages on Kudu doesn't seem to have any effect

Earlier today, I executed npm install and the node_modules directory was created with all the necessary files. However, a few hours later, when I ran the same command with the same package.json file, there were no errors, but the node_modules directory wa ...

The SQL instance on Google Cloud Platform is currently unable to establish connections with a **nodejs application** when using custom user credentials

After adding my IP to the whitelist, I successfully connected to a Google Cloud Platform SQL Server instance using the sqlcmd utility in my terminal. sqlcmd -S <ip-address> -U <username> -P<password> However, when attempting the same co ...

Frustrating SQL query producing null result (unable to provide custom array and callback function not functioning)

My task involves using Tedious in Node JS to execute a basic SQL Query : var Connection = require('tedious').Connection; var config = { server: 'myserver.database.windows.net', authentication: { type: 'default', options: { ...

Dependencies for sequelize and tedious in Visual Studio Node NPM that are not included in package.json are not listed

During my attempt to set up sequelize and then tedious, I proceeded with the command npm install sequelize. Following the installation process, the Solution Explorer unexpectedly displayed an extensive list of packages suffixed by (not listed in package.js ...

Executing a function in Node-Express with a database connection at the beginning of the application

I am relatively new to Node.js and currently working on a Node.js - Express solution as a back-end for an AngularJS web application. My goal is to send an email when the MSSQL database query returns specific information. I have successfully implemented thi ...

Tips for troubleshooting Node.js mssql promise issues

Is there a way to pass the response data from one SQL Server stored procedure into another stored procedure for logging purposes? I've attempted different methods but encountered issues with connection pools and errors like HTTP Status: 500, subStatu ...

Is it necessary to establish a fresh connection for every new API request?

I am currently developing my API server using Express JS, and I am connecting to my SQL Server DB with tedious. For each request logic, I am creating a new tedious Connection object, establishing a connection to the DB, executing the query, and then closi ...

Uh-oh! We encountered a little hiccup while running NodeJS on Azure with Sequelize for SQL

So I have been working on developing a NodeJs application on my Windows machine. Recently, I decided to deploy it on Azure cloud and set up a SQL Server instance. During the testing phase, where the node app was running locally and the SQL Server was conn ...

Having trouble establishing a connection between Node.js and SQL Server using Tedious library

When attempting to connect to a local SQL Server instance using Node.js and Tedioius, I encounter the following error: { [ConnectionError: Failed to connect to XXXXX:1433 - connect ECONNREFUSED] name: 'ConnectionError', message: 'Failed to connect to ...

Make sure to wait for the stored procedure to finish executing before running the Python script in Node/Express using Tedious

I'm struggling to figure out how to properly time the execution of a python script following the completion of a SQL Server stored procedure via a router.post (express4/tedious): router.post('/post/create', textParser, function (req, res) { ...