tedious

Cannot connect to SQL Server with Node.js and Tedious

…衆ロ難τιáo~ 提交于 2019-11-30 08:55:11
When I try to use Node.js and Tedioius to connect to a local SQL Server instance I get this error: { [ConnectionError: Failed to connect to XXXXX:1433 - connect ECONNREFUSED] name: 'ConnectionError', message: 'Failed to connect to XXXXX:1433 - connect ECONNREFUSED', code: 'ESOCKET' } Here is my connection object: var config = { userName: 'username', password: 'password', server: 'XXXXX', options: { database: 'databasename', instancename: 'SQLEXPRESS' } }; I have checked and TCP/IP is enabled and broadcasting on port 1443 according to Configuration Manager. The SQL Server Browser service is

Cannot connect to SQL Server with Node.js and Tedious

痞子三分冷 提交于 2019-11-29 13:37:15
问题 When I try to use Node.js and Tedioius to connect to a local SQL Server instance I get this error: { [ConnectionError: Failed to connect to XXXXX:1433 - connect ECONNREFUSED] name: 'ConnectionError', message: 'Failed to connect to XXXXX:1433 - connect ECONNREFUSED', code: 'ESOCKET' } Here is my connection object: var config = { userName: 'username', password: 'password', server: 'XXXXX', options: { database: 'databasename', instancename: 'SQLEXPRESS' } }; I have checked and TCP/IP is enabled

Node.js MSSQL tedius ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED

故事扮演 提交于 2019-11-28 07:10:38
I am trying to connect to MSSQL 2012 using NodeJS with the mssql connection interface. When attempting to connect I get the following error: { [ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED] name: 'ConnectionError', message: 'Failed to conncet to localhost:1433 - connect ECONNREFUSED', code: 'ESOCKET' } Any ideas on how to fix this? The solution is to enable TCP connections which are disabled by default. My case wasn't exactly the same as Matt's, but his screenshot was enough to remember me what was missing. As it is said here , when you are using the SQL Server

Node.js and Microsoft SQL Server

北慕城南 提交于 2019-11-27 17:04:37
Is there any way I can get my Node.js app to communicate with Microsoft SQL? I haven't seen any MS SQL drivers out there in the wild? I'm putting a very simple app together and need to be able to communicate with an existing MS SQL database (otherwise I would have gone with mongoDB or Redis) kop48 We just released preview drivers for Node.JS for SQL Server connectivity. You can find them here: http://blogs.msdn.com/b/sqlphp/archive/2012/06/08/introducing-the-microsoft-driver-for-node-js-for-sql-server.aspx The original question is old and now using node-mssql as answered by @Patrik Šimek that

Node.js and Microsoft SQL Server

狂风中的少年 提交于 2019-11-27 04:10:46
问题 Is there any way I can get my Node.js app to communicate with Microsoft SQL? I haven't seen any MS SQL drivers out there in the wild? I'm putting a very simple app together and need to be able to communicate with an existing MS SQL database (otherwise I would have gone with mongoDB or Redis) 回答1: We just released preview drivers for Node.JS for SQL Server connectivity. You can find them here: http://blogs.msdn.com/b/sqlphp/archive/2012/06/08/introducing-the-microsoft-driver-for-node-js-for

Node.js MSSQL tedius ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED

佐手、 提交于 2019-11-27 01:44:37
问题 I am trying to connect to MSSQL 2012 using NodeJS with the mssql connection interface. When attempting to connect I get the following error: { [ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED] name: 'ConnectionError', message: 'Failed to conncet to localhost:1433 - connect ECONNREFUSED', code: 'ESOCKET' } Any ideas on how to fix this? 回答1: The solution is to enable TCP connections which are disabled by default. 回答2: My case wasn't exactly the same as Matt's, but