Login failed for user
Rishabh Kumar
1
Reputation point
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.