Login failed for user

Rishabh Kumar 1 Reputation point
2021-03-09T20:59:50.24+00:00

I am running the script as mentioned below via batch file and I am getting error.

Script:
sqlcmd -S servername.company.edu -U first.last@mathieu.company .edu -P password
-G -s "|" -i "c:\Users\fl1\Desktop\Test.sql" -o "c:\Users\fl1\Desktop\output.txt"

Error:
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user ''

Can someone advise what could be the issues here? Since I have tried the double quotes, single quotes, and no quotes around username and password but none worked.

Azure SQL Database
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
302 questions
{count} votes