When I execute SQLCMD.EXE -E it should use the trusted account but instead my DBA tells me it is passing the server name as the user ID. In our 11.3 system it is executing fine, but we just upgraded to 12.2 and it will not seem to work.
Windows job
command: %ESP.PROG_DIR_MSQL_SERVER_BINN\SQLCMD.EXE
arguments to pass: -E -b -ic:\input\PPI600E_ESA.sql -oc:\reports\PPI600E_ESA.txt -S %ESP.CAWA_DB\%ESP.CAWA_DB -h-1
Where the variables are setup correctly in global variables.
The error looks like:
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user 'DOMAIN\SERVER$'