I have a very basic program that reads a csv file into a SQL table, runs a couple of queries on that table and then reads that data and writes the converted data back to an output csv file. On my development computer all works fine. However, when I drop it into production right after reading in the data I get this exception error message:
System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0
private void btnScrub_FileClick(object sender, EventArgs e)
lblProcessing.Text = "Processing starting ... please wait.";
Input_CSV_File(); /* Insert the data into SQL */
Output_CSV_File(); /* Extract the data from SQL and write only required fields to the csv file */
Please cancel this question. I ran the query directly in SQL and discovered their tempdb was consuming all the disk space.
I do not know how to even troubleshoot something like this. I have increased the connection timeout for the SQL connection but that cannot be it because I open it and leave it open until the routine closes. I am wondering if it has something to do with the Application.DoEvents method? I do have a progress bar in the code and use this to see the progress bar progress. By the way, the production computer is much slower than my development computer. In development the entire process takes about 60 seconds. In production it takes about 12 minutes.