I am getting this error randomly:
Timeout expired. "Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed before completion of the operation or the server is not responding."
Sometimes the package just runs fine without any errors. I am confident there is no syntax or database error in the SQL script I wrote. I also changed the connection timeout to 30 but I still get this error. Any suggestion would be highly appreciated.
I have series of data flow task, and I have one script task as well. I get this error in the script task when I try to run a select query, Select query run fine if I run it on SQL server management studio. I take data from one server and insert it into a database on the different server. I hope that makes sense.
Also, when i debug the script it hangs right on that query but when I run this in SSMS it gives result in like 30 seconds. Could it be possible that there is some network issue connecting to SQL server through is?