-
Notifications
You must be signed in to change notification settings - Fork 439
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
not working with sql server native client 11 (in azure) #49
Comments
What messages are emitted from the connection's info and error events? I understand that azure only supports SQL Server connections with encryption. So the first question is, have you enabled encryption on the connection? The
It's possible that even with encryption enabled, there's a problem with the encryption. I've had mixed results trying to get it to work. To try and get a better understanding of the problem, can you enable some debugging logging please?
Then on the Connection object, log
This should produce a whole bunch of debug data. If you can add it to this issue (or as a gist), then I'll take a look at it. (You'll probably want to redact the username and password.) |
it works now. Yes, I had to use encrypt: true in options. Also userName in config had to be changed to user@servername.database.windows.net The error showed up after enabling encrypt: true in config.options Thanks a lot for your help. |
There's currently no in-built support for connection pooling. There are a couple of implementations that you might like to look at.
I'm not totally convinced that connection pooling belongs in tedious. My feeling is that it's a separate concern, and should perhaps be in separate library. However this isn't something that I feel strongly about, and I could probably be persuaded to include it. |
pooling: I agree. generic-pool works great. node loves small modules. |
I tried my code on sql server r2 and it works but it does not work on sql azure which is using sql server native client 11. Any ideas?
I also tried adding some options, but in vain.
options : {
database: 'xxxxxxxx',
driver: 'SQL Server Native Client 11.0'
}
The text was updated successfully, but these errors were encountered: