Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialect options being ignored for mssql named instance #1517

Open
semics-tech opened this issue Jul 24, 2024 · 0 comments
Open

Dialect options being ignored for mssql named instance #1517

semics-tech opened this issue Jul 24, 2024 · 0 comments

Comments

@semics-tech
Copy link

What you are doing?

I am trying to run a db:migration on a mssql server with a named instance and it's failing to connect due to the dialectOptions.instanceName not being respected

export default {
  production: {
    username: USERNAME,
    password: PASSWORD,
    database: DATABASE,
    host: HOSTNAME,
    dialect: 'mssql',
    dialectOptions: {
      instanceName: INSTANCENAME,
    }
  },
}

What do you expect to happen?

Migration to connect successfully

What is actually happening?

Migration is trying to connect to the host only

Output, either JSON or SQL
ERROR: Failed to connect to HOSTNAME:1433 - Could not connect (sequence)

Dialect: mssql
Database version: 2019
Sequelize CLI version: 6.6.2
Sequelize version: 6.37.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant