Click here to Skip to main content
15,886,769 members

Comments by Member 11683251 (Top 35 by date)

Member 11683251 19-Oct-16 3:58am View    
That seems to work, the files was created and correct data is in it.
Thanks a lot! Post it as an answer and I'll accept it. :)
Member 11683251 19-Oct-16 3:46am View    
OdbcDataReader myReader;

It runs the SQL query. This programs grab data from the sql and dumps to excel. Another excel imports this data into itself. I call this program from the importing excel program via shell.
Member 11683251 30-Oct-15 10:20am View    
I have tested running a small span of files this way and it works perfectly for my purpose. Was already capturing errors, or so I thought but your last comment made me realize that I should probably do some testing so I deleted a file and then allowed the program to continue and found a small bug but after fixing it logs it nicely and continues. :)
Member 11683251 30-Oct-15 9:57am View    
Well this we are retiring this system in a month so I'll be from VB6 then. I was thinking about writing it in .net c# but getting the layout of the form right might be a hassle.

I was thinking about multithreading but I feel like it would be too much of a hassle for this task, will probably take so long to get it working that the time saved/extra spent wouldn't justify that approach.

Wait for process to finish seems to be exactly what I need, not sure if it will add a few extra seconds per file but if It allows me to leave my computer on over the weekend while it does the work it doesn't matter.

Going to run with that because it shouldn't take to long to implement. Thanks for the help. Much appreciated.
Member 11683251 29-Oct-15 4:04am View    
That's a really helpful description, one of the main obstacles I tend to run in to is that I wish to solve my queries similarly to normal programming. If this do that, loop this etc. One work around has been in my programs to run multiple queries and then use that data to get what I want.