Share via

Need latest bcp tool for Entra usage (should support -G and -u)

Rath, Biswaranjan 20 Reputation points
2026-04-05T11:22:54.45+00:00

I have tried installating latest SQL Server Tools, MS-ODBC driver, and even SQL Server 2025. But the bcp tool didn't have '-u' option.

User's image

User's image

ODBC v18 doesn't have tools. So it refers to 170 in ODBC.

SQL Server Database Engine

Answer accepted by question author
  1. Marcin Policht 85,065 Reputation points MVP Volunteer Moderator
    2026-04-05T13:07:56.5733333+00:00

    AFAIK, the -u option in the bcp tool is available starting with bcp version 18 and later. If you're using version 16.0.1000.6, which is from the ODBC\170\Tools\Binn folder, this version of bcp does not support the -u option, although it does support -G for Microsoft Entra authentication. The absence of the -u option in this version is the main issue you're encountering.

    To get a version of bcp that supports both -G (for Entra authentication) and -u (for trusting the server certificate when encryption is enabled), you need to install the Microsoft Command Line Utilities 15 for SQL Server, which includes a compatible build of bcp that supports both options.

    To proceed, install the latest Microsoft Command Line Utilities 15 for SQL Server, ensuring you have the version that includes the updated bcp. You can download the appropriate version for your architecture:

    • x64: Microsoft Command Line Utilities 15 for SQL Server (x64)
    • x86: Microsoft Command Line Utilities 15 for SQL Server (x86)

    Additionally, make sure you have the latest Microsoft ODBC Driver 17 for SQL Server installed - this is a prerequisite for these tools. This should ensure full compatibility for both the authentication (-G) and encryption handling (-u).


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.