Skip to content

MSSQL tedious "options.encrypt" warning #9574

Closed

Description

@exp-anoop

Hi,
When I tried to connect mssql database it shows the following warning message.

The default value for `options.encrypt` will change from `false` to `true`. Please pass `false` explicitly if you want to retain current behavior.

When I check the sequelize documentation I could not find an option to set "encrypt" to false.

Dialect: mssql
Sequelize version: 4.37.10
tedious version: 2.6.1

I think we need add on option to set "encrypt" parameter in sequalize connect.

Activity

  1. added
    dialect: mssql
    good first issue
    on Jun 21, 2018
  2. sushantdhiman commented on Jun 24, 2018

    @sushantdhiman
    Contributor

    Fixed by #9588

    By default Sequelize will set encrypt to false. You can easily override this by dialectOptions

    var sequelize = new Sequelize('my - connection - string', {
      dialect: 'mssql',
      dialectOptions: {
        encrypt: true
      }
    });
  3. vinaybhawsar commented on Mar 28, 2019

    @vinaybhawsar

    Above solution didin't work for me to override this by dialectOptions.
    I tried bellow way and it worked for me

    var sequelize = new Sequelize('my - connection - string', { dialect: 'mssql', dialectOptions: { options: { encrypt: true } } });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dialect: mssqlgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions