-
Notifications
You must be signed in to change notification settings - Fork 28
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
LinqQueryAsync throwing connection error if we setup Persist Security Info=False in connection string. (OSOE-801) #236
Comments
Maybe we can pass the transaction or the DB connection instead of using the connection string. However, a question is, why does linq2db tries to connect to the DB on its own, when we pass in the transaction via |
linq2db needs to know which SQL Server dialect to use. For that you need to specify |
Thanks for chiming in! Do you mean that if we specify |
In your case you can do it a bit differently. Change this line
to "SqlServer" => ProviderName.SqlServer20xx,
Dialect version shouldn't be greater than your database version to avoid incompatible sql generation |
Ah, great, thank you! I did this and it appears to be working well. @mohit-naroliya, I released a |
SQL login failed due to incorrect username and password, which was being thrown from the _session.LinqQueryAsync method. We investigated and discovered that the transaction.Connection.ConnectionString did not contain the password. As a workaround, we configured the Persist Security Info flag as true, which resolved the issue.
We received exceptions from Azure Application Insights, but no exceptions appeared on the local environment console.
Jira issue
The text was updated successfully, but these errors were encountered: