Skip to content
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

Add bcp -u option for SQL Server to trust the server certificate #653

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

sm-shaw
Copy link
Contributor

@sm-shaw sm-shaw commented Jan 5, 2024

Adds -u option to bcp based builds when running on Linux with ODBC driver 18 and trust server certificate is checked to avoid certificate verify failed:self signed certificate error.
Tests on Windows showed bcp used ODBC 17 so change has not been added to Windows but may need to be in future.

Noting that the long-term solution is to extend the ODBC interface that HammerDB uses to include bcp based commands #594 as issues such as this are a direct result of calling the external tools i.e. we have already logged in and trusted the server certificate, however using the bcp executable means we need to do this again.

@abondvt89
Copy link
Contributor

Merging after reviews and approval of the three members of the code maintenance team.

@abondvt89 abondvt89 merged commit ac905f6 into TPC-Council:master Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSSQL mssqls_use_bcp produces trusted certificate error on SQL Server 2022
3 participants