Today you send me a solution using BackgroundWorker and it worked, but in my routine there is a lot of stored procedures and in a certais time I received the messege below:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
In adicction I have to say that in the begining I had only one procedure, but, because of this problem I divided the procedure. In spite of this I can´t still avoid the time out.
Thanks for your help.