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

178
Views
How to print the values that are passed to store procedure along with parameters in node.js

Can anyone suggest how to know the values that are passed to stored procedures along with the parameters.
The below is my code:

const myspvalues = {
AccountID: req.body.userid
AccountName: req.body.AccountName
Email: req.body.mail
}

const result = await models.sequelize.query(
     spAccount_InsertUpdate  @UserID= $AccountID
           @UserName = $AccountName,
           @Email = $Email,
        {
          bind: myspvalues,
          type: models.sequelize.QueryTypes.RAW,
        }
      );

**I tried the below:**
console.log('myspvalues are:',myspvalues)

I am getting below output:

AccountID: 1
AccountName:'Alisa'
Email:'test@gmail.com'

But, I want the result to be displayed as below:

@UserID = 1
,@UserName = 'Alisa'
,@Email = 'test@gamil.com'

Can anyone suggest how to get the above result with paramters.

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!