question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-adodb Error: Spawn C:\Windows\SysWOW64\cscript.exe

See original GitHub issue

Good afternoon, I’m having this error and I did some procedures to solve it, but I did not get many results, does anyone know how to solve it?

code below

`const ADODB = require(‘node-adodb’); ADODB.debug = true;

// Connect to the MS Access DB const connection = ADODB.open(‘Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\192.168.0.4\banco_teste\DBCIEE.mdb;’); // Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\192.168.0.4\BANCO\DBCIEE.mdb;Persist Security Info=False

//Query the DB async function query() { try{ const users = await connection.query(‘SELECT * FROM CIEE01’);

    console.log(JSON.stringify(users, null, 2));
}catch(error){
    console.error(error);
}

}

query();`

Thank’s

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
RoelVBcommented, Nov 1, 2018

Do console.error(JSON.stringify(error)) instead of console.error(error). This could give you some extra information.

2reactions
mohammadfgcommented, Jun 25, 2021

use this code :

    const ADODB = require('node-adodb');
    // ADODB.debug = true;
    const connection = ADODB.open('Provider=Microsoft.ACE.Oledb.12.0;Data Source=C:\\databases\\DB.accdb;', process.arch.includes('64'));
    
    connection.query('SELECT * FROM Table1').then(data => {
        console.log(JSON.stringify(data));
    }).catch(error => {
        console.error(JSON.stringify(error))
    });
Read more comments on GitHub >

github_iconTop Results From Across the Web

After electron-build node-adodb got error: 'Spawn C ...
I found a solution. you have to import {app} from 'electron' import ADODB from 'node-adodb'; if (app.isPackaged) { ADODB.PATH = '.
Read more >
After electron-build node-adodb got error - Vue.js
Coding example for the question After electron-build node-adodb got error: 'Spawn C:\WINDOWS\SysWOW64\cscript.exe error'-Vue.js.
Read more >
After electron-build node-adodb got error - Anycodings.com
After electron-build node-adodb got error: 'Spawn C:\WINDOWS\SysWOW64\cscript.exe error' I was using node-adodb.js to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found