public static bool IsServiceQueueDisabled(this SqlException exception) { Contract.Requires(exception != null); // 9617 -> The service queue "%.*ls" is currently disabled. return exception.Number == 9617; }