• If you want to use Windows authentication with SQLCMD you can use the -E switch. This sets the security to 'integrated mode' and uses the current Windows account. You need to omit the -U and -P switch.

    SQLCMD -S {server\instance} -d {dbname} -E

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **