I can successfully run osql using the -E -i options. I have written a short program in VC++ to do the same thing. Create a process and enter the command line parameters. Every time the program runs, it asks for a password and then it fails. Why is this? When I type it in manually from the command line, it runs fine, but for some reason when the program runs it, it asks for a password. Any help on this would be greatly appreciated. Thanks in advance.