Skip to content

Cannot connect to local DB with instance name #277

Description

@linvi

Hello,

First of all, thank you for this library it looks good and is very simple to use.

I am encountering an issue when using the tedious driver with named instances.
Here is my configuration :

var config = {
    user: 'sa',
    password: 'mypassword',
    server: 'localhost\\SQLSERVER_2014',
    database: 'TestDB',
    options: {
        encrypt: false
    }
}; 

With the same configuration, I am able to connect with msnodesqlv8.
Is it better to use tedious, if yes why? Is there anything wrong with the configuration?

Find the attached error with the tedious driver :

{ [ConnectionError: Failed to connect to localhost:undefined in 15000ms]
  name: 'ConnectionError',
  message: 'Failed to connect to localhost:undefined in 15000ms',
  code: 'ETIMEOUT' }

I tried to look at the code myself but I am not familiar enough with it for now to find where the error could be located.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions