Hi,
Sathyaram_s, I know this solution, but this is not what I would like to have. I would like to have only one file - and this file should be the batch file. You wrote a solution with two files: batch and sql file.
The main problem I have is that I can't read the secound batch file output results in the main batch program. So I would like to have only one batch file like described in my first post. Now my solution works: secound batch file writes the data to temp file and then main batch program reads that file. I would like to get rid of temp file. Because script is so complex that it requires multiple temp files - this is disaster.
I just can't bealive that there is no solution on Windows, but there it is on Linux?
My solution from first post works fine, just I have problems of "connection lost" error! Can be something done to overcome this problem.
Grofaty