• you don't need to add the -E parameter if you don't specify password and username. it uses windows authentication by default.

    I got it to run when i changed this :

    "sqlcmd -S SQLSRV -i C:\Tests\TestCMD.sql"

    to this:

    sqlcmd -S SQLSRV -q "C:\Tests\TestCMD.sql"

    I executed a tiny query that respond on the Command promt console inmediatly but my Job starts running and never finishes.. has this happened to you ?

    thanks

    Tom