当从vb.net调用存储过程时,如果在连接字符串中未指定超时时间,是否存在默认的SQL超时时间?
我不确定连接字符串中是否指定了
例如,如果在30秒(或更长时间)内没有结果,则抛出异常:
CommandTimeout
,但我正在遍历所有可能性。例如,如果在30秒(或更长时间)内没有结果,则抛出异常:
`System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.`
SQL Profiler显示,当程序超时时,脚本在30秒内运行并结束。
在SQL Server中,该脚本单独运行大约需要1分45秒,没有错误。