Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
关键问题是 SqlCommand.CommandTimeout 和 SqlConnection.ConnectionTimeout 的区别。
连接字符串中的超时只是设置的 SqlConnection.ConnectionTimeout 的值,而不是设置的 SqlCommand.CommandTimeout 的值。

浙公网安备 33010602011771号