title: Connecting to MSSQL server with Sequelize
body: <p>Using the following tedious code, I can successfully connect to an Azure SQL Server.</p>
  
  <pre><code>const Connection = require('tedious').Connection;
  
  const connection = new Connection({
      userName: '[USER]',
      password: '[PASSWORD]',
      server: '[HOSTNAME]',
      options: {encrypt: true}
  });
  
  connection.on('connect', (err) =&gt; {
      if (err) {
          console.log('error connecting', err);
      } else {
          console.log('connection successful');
      }
  });
  </code></pre>
  
  <p>However, using what should be the equivalent Sequelize code, I get a connection timeout error.</p>
  
  <pre><code>const Sequelize = require('sequelize');
  
  const sequelize = new Sequelize('[DBNAME]', '[USER]', '[PASSWORD]', {
      dialect: 'mssql',
      host: '[HOSTNAME]',
      dialectOptions: {
          encrypt: true
      }
  });
  
  sequelize.authenticate().then((err) =&gt; {
      console.log('Connection successful', err);
  })
  .catch((err) =&gt; {
      console.log('Unable to connect to database', err);
  });
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>Using: sequelize 3.29.0, tedious 1.14.0, SQL Server v12</p>