question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mssql uri connection string: enableArithAbort

See original GitHub issue

I updated to the most recent node-mssql version and now I am getting a tedious deprecated warning: tedious deprecated The default value for config.options.enableArithAbort will change from false to true in the next major version of tedious. Set the value to true or false explicitly to silence this message.

I have looked through this repository, but I only found the solution for passing a config to the ConnectionPool.

How would this work with the uri connection string? mssql://username:password@ip:1433/database?encrypt=true&enableArithAbort=false

Expected behaviour:

The deprecated message goes away

Actual behaviour:

Message is still there, eventhough the enableArithAbort is passed mssql://username:password@ip:1433/database?encrypt=true&enableArithAbort=false

Configuration:

mssql://username:password@ip:1433/database?encrypt=true&enableArithAbort=false

Software versions

  • NodeJS: 10.5.0
  • node-mssql: 6.1.0
  • SQL Server: 13.0.4001.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:24

github_iconTop GitHub Comments

2reactions
dhensbycommented, Jan 25, 2021

I have now authored a better (and more generic) connection string parser

This has been integrated to the latest mssql v7 beta. At the moment the enableArithAbort option is still not supported and this is mostly because I’m not sure it’s right to add support for unlimited non-standard connection string properties just so we can then add them to the tedious object. However, I do concede I had added support from some non-standard options (like stream=true).

I think there are probably two options here:

  1. We encourage people to parse their own connection string using the library and then provide the config object with the extra params they want to support - this helps keep the library less tightly coupled to version of tedious
  2. We support more non-standard params in the query string.
2reactions
nfantonecommented, Sep 22, 2020

Yeah, I hear you. Mentioned it was “a workaround”. Although, that particular module has been around for more than four years - and it’s always going to be there for the current version. If it changes later on, it should be “as easy” as swapping the internal implementation for the external connection URI parsing tool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - mssql uri connection string: enableArithAbort -
I updated to the most recent node-mssql version and now I am getting a tedious deprecated warning: tedious deprecated The default value for...
Read more >
node-mssql | Microsoft SQL Server client for Node.js
If you're on Windows Azure, add ?encrypt=true to your connection string. ... Parts of the connection URI should be correctly URL encoded so...
Read more >
URI Connection Strings - Troubleshoot your Connection
Below is a list of connection strings for use when connecting a database using a SQLAlchemy URI. Select linked database name for more...
Read more >
Node.js mssql error: tedious deprecated The default value for ...
I get the error below. How do I fix it? tedious deprecated The default value for `config.options.enableArithAbort` will change from `false` to ` ......
Read more >
Create the SQL Server connection URI - Microsoft Learn
The Microsoft BizTalk Adapter for SQL Server connection URI contains ... For more information about these connection string properties, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found