$ 0 0 -P at the end of the command line does not default to blank. Use osql for this. Blank passwork must not be supported by sqlcmd.