SQLCMD: "Login failed for user" on SQL Azure, but it works with SSMS I have an SQL Azure database, and I'm able to connect to it using SQL Server Management Studio. When connecting to it, it displays 

myServer.database.windows.net (SQL Server 12.0.2000.8 - myUser)

However, when I'm using the SQLCMD utility on the same machine, against the same SQL Azure server, with the same credentials, it always answers

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


The syntax I'm using is

sqlcmd -S tcp:myServer.database.windows.net -U myUser@myServer -P "myPassword"


I tried everything I could think of:


Added the port: myServer.database.windows.net,1433
Removed the tcp: protocol
Enclosed the user in double quotes, like the password
Tried the -I and -C command line options
Combinations of the above.


The error is always the same.

Is there some specific flag that has to be activated for SQLCMD to work with SQL Azure? Any other ideas?
The error was some encoding issue with Powershell. I suppose the password's special characters were not read correctly by Powershell.

In cmd.exe, it worked flawlessly.