为什么在SQL Server Management Studio中运行需要<1秒时,使用此代码返回一个包含9列,89行的表的存储过程需要60秒才能执行(.NET 1.1)? 它在本地机器上运行很less/没有networking延迟,快速开发机器 Dim command As SqlCommand = New SqlCommand(procName, CreateConnection()) command.CommandType = CommandType.StoredProcedure command.CommandTimeout = _commandTimeOut Try Dim adapter As new SqlDataAdapter(command) Dim i as Integer For i=0 to parameters.Length-1 command.Parameters.Add(parameters(i)) Next adapter.Fill(tableToFill) adapter.Dispose() Finally command.Dispose() End Try 我的参数数组是键入的(对于这个SQL它只有一个参数) parameters(0) = New SqlParameter("@UserID", SqlDbType.BigInt, 0, ParameterDirection.Input, True, 19, 0, "", DataRowVersion.Current, […]