Error connecting to SQL Server database with sequelize
<p>I am trying to connect to a SQL Server database using sequelize. Here is my connection code.</p>

<pre><code>var connection = new Sequelize(config.database,config.user,config.password, {
host: config.server,
port: 1433,
dialect: 'mssql'
});
</code></pre>

<p>I know that my config file is passing in the data correctly. I have been able to connect to  a mysql DB, but when I switched to try the same with SQL Server I had no luck.</p>

<p>Am I missing some connection option here? I didn't see anything about the domain in the documentation, so right no that is missing and it's my best guess at the cause.</p>

<p>This is the error I am getting</p>

<blockquote>
  <p>message: 'Failed to connect to HOSTNAME:1433 - connect ECONNREFUSED ip.of.ho.st:1433',</p>
</blockquote>

<p>Here is my package.json file</p>

<pre><code>    {
  "name": "sequelizeTest",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" &amp;&amp; exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "sequelize": "^3.19.3",
    "tedious": "^1.13.2"
  }
}
</code></pre>