Have you tried open that scheduled job and open connection tab, put your password in connection string (Password=<your sql server password>? Sometimes I found...
If you mean you cannot generate table scripts with index, go to that specified database name and right click, choose tasks, generate scripts, next, choose dbname, set script indexes under...