Thanks Ludek,
I'll take a look at the article. Just to clarify, I am not using a command and table in the same report. I was just testing to see if the login prompt was caused by the command not getting the proper login credentials from my code, so I was testing essentially the same SQL code by using a command in one report and a table in the other.