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

Added use_bcp default as true and enabled bcp with windows authentication #592

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

krithikasatish
Copy link
Contributor

The use_bcp option was by default set to false because bcp did not work through windows authentication. Bcp statement is now modified based on authentication type, with the -T flag used in place of a specified username and password when the connection is through windows authentication. This ensures that the bcp command will use the Windows logged in user's credentials.

Copy link
Contributor

@sm-shaw sm-shaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On testing, virtual users would error with following message:
Error in Virtual User 2: Error: can't read "authentication": no such variable
This is because it checks the value of the authentication variable but this variable is not set in this proc. Added upvar so that the authentication variable setting can be queried without error.
With fix test shows that bcp load works with Windows authentication meaning the option can be the default as it is faster.

@sm-shaw
Copy link
Contributor

sm-shaw commented Sep 11, 2023

Tested on all combinations of Windows and SQL authentication with and without BCP selected

@abondvt89 abondvt89 merged commit 3b2b9cd into TPC-Council:master Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL Server BCP based load enhancements
4 participants