-
Notifications
You must be signed in to change notification settings - Fork 468
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
Connection failure with options object vs connection string #679
Comments
Well based on this, you are trying to open a connection with the user "username" while you state in your connection string that it should be "your_username", you should change your config to be using "your_username"
|
are you trying to be funny? I literally cannot tell. Changed the issue because |
I did some test to compare your connection string to the object you specified: const { resolve } = require('mssql/lib/connectionstring');
resolve("Server=tcp:serverdatabase.database.windows.net,1433;Initial Catalog=DEPRECATED;Persist Security Info=False;User ID={username};Password={password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;") This gives you: { password: 'password',
database: 'DEPRECATED',
connectionTimeout: 30,
requestTimeout: undefined,
stream: false,
options: { encrypt: true },
port: 1433,
user: 'username',
server: 'serverdatabase.database.windows.net' } The options object in the original issue is missing both Would you mind to please retry with either/both those options set, and let me know how you get on? |
Closing - I suspect it was a duplicate of #739 |
Similar to #578, but different error messages.
Using a config object like so:
throws the following error:
While using the connection string works:
Server=tcp:serverdatabase.database.windows.net,1433;Initial Catalog=DEPRECATED;Persist Security Info=False;User ID={username};Password={password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
running on node
10.0.0
The text was updated successfully, but these errors were encountered: