-
Notifications
You must be signed in to change notification settings - Fork 68
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
can you provide more connection parameters #40
Comments
Can you elaborate with a more detailed list? for example, what would |
Lets say we have a table T1( C1 varchar(50), C2 varchar(40)....) execute query with varchar column query parameter in where clause. where("[C1] = ?","4000") The parameter "P4000" in the above query is passed as nvarchar(4000) When I check the query from database: This is effecting the query plan. As the execution plan is doing a convert_implicit(C1) in the where clause. This is meaningless transformation Is there a way to pass the parameter as varchar instead of nvarchar so that query engine does not do the the implicit conversion and picks up the right index? in java driver, we found a driver parameter sendStringParametersAsUnicode. Setting this to false helps the params data type to be varchar(4000). i refer official doc https://docs.microsoft.com/en-us/sql/connect/jdbc/reference/setsendstringparametersasunicode-method-sqlserverdatasource?view=sql-server-ver16
|
@shueybubbles @cfw Since Microsoft officially maintains Golang and Java libraries now. Can we please expect this issue to be prioritized for parity in the features? |
@moizm89 I'd love to get more community feedback on solving this problem at #46 |
can you provide more connection parameters? like sendStringParametersAsUnicode
The text was updated successfully, but these errors were encountered: