Skip to content

Missing tdsVersion option on CLI #1781

@luisvinicius09

Description

@luisvinicius09

As title, I have the need to chose the tdsVersion when running the CLI, to connect in a SQL Server 2000.

I've took a look at the code and could confirm that is not possible to pass it as an argument
Currently this are the available options(taken from node-mssql/bin/mssql file):

  .option('--config <file>', 'Configuration file for the connection', './.mssql.json')
  .option('--user <user>', 'User for the database connection')
  .option('--password <password>', 'Password for the database connection')
  .option('--server <server>', 'Server for the database connection')
  .option('--database <database>', 'Database for the database connection')
  .option('--port <port>', 'Port for the database connection', parseInt)
  .option('--encrypt', 'Use the encrypt option for this connection', false)
  .option('--trust-server-certificate', 'Trust the server certificate for this connection', false)

My goal would be to use it as

mssql --database master --user sa --password xxxxxxxx --server 192.x.x.x --port 1433 --tdsVersion 7.1

Am I missing something, or do we need to make a change to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions