cannot connect to SQLExpress usign node.js

170 views Asked by At

I am using SQL Server (SQL EXPRESS) 2005 9.0.3042

I have poured through lots of examples.

Made sure TCP port 1433 open for all IP. Made sure browser is started Tried all kinds of config settings

using tedious or mssql

Just trying to find something that will work !!

But all I get is the following errors

ConnectionError: Failed to connect to localhost:1433 - Cannot call write after a stream was destroyed
at ConnectionError (C:\git\adv_energy\sql_node_js\node_modules\tedious\lib\errors.js:13:12)
at Connection.socketError (C:\git\adv_energy\sql_node_js\node_modules\tedious\lib\connection.js:1628:56)
at Socket.<anonymous> (C:\git\adv_energy\sql_node_js\node_modules\tedious\lib\connection.js:1395:14)
at Socket.emit (events.js:327:22)
at errorOrDestroy (internal/streams/destroy.js:108:12)
at onwriteError (_stream_writable.js:418:5)
at onwrite (_stream_writable.js:445:5)
at doWrite (_stream_writable.js:399:11)
at writeOrBuffer (_stream_writable.js:387:5)
at Socket.Writable.write (_stream_writable.js:318:11) {

code: 'ESOCKET' }

0

There are 0 answers