505 references to SQL
System.Data (505)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (12)
636throw SQL.UnsupportedColumnTypeForSqlProvider(column.ColumnName, column.DataType.Name); 641throw SQL.InvalidColumnMaxLength(column.ColumnName, maxLength); 672throw SQL.InvalidTableDerivedPrecisionForTvp(column.ColumnName, precision); 706throw SQL.InvalidTableDerivedPrecisionForTvp(column.ColumnName, precision); 748throw SQL.NullSchemaTableDataTypeNotSupported(colName); 758throw SQL.UnsupportedColumnTypeForSqlProvider(colName, colType.ToString()); 814throw SQL.InvalidColumnMaxLength(colName, maxLength); 844throw SQL.InvalidColumnMaxLength(colName, maxLength); 874throw SQL.InvalidColumnMaxLength(colName, maxLength); 901throw SQL.InvalidColumnPrecScale(); 917throw SQL.InvalidColumnPrecScale(); 927throw SQL.UnsupportedColumnTypeForSqlProvider(colName, colType.ToString());
fx\src\data\Microsoft\SqlServer\Server\SmiContextFactory.cs (6)
46throw SQL.ContextUnavailableOutOfProc(); // Must not be a valid version of Sql Server. 55throw SQL.ContextUnavailableOutOfProc(); // Must not be a valid version of Sql Server. 90throw SQL.ContextUnavailableOutOfProc(); // Must not be a valid version of Sql Server, or not be SqlCLR 100throw SQL.ContextUnavailableOutOfProc(); // Must not be a valid version of Sql Server, or not be SqlCLR 109throw SQL.ContextUnavailableOutOfProc(); // Must not be a valid version of Sql Server, or not be SqlCLR 116 throw SQL.ContextUnavailableWhileInProc();
fx\src\data\Microsoft\SqlServer\Server\SmiEventSink_Default.cs (14)
195throw SQL.UnexpectedSmiEvent(UnexpectedEventType.BatchCompleted); 202throw SQL.UnexpectedSmiEvent(UnexpectedEventType.ParametersAvailable); 209throw SQL.UnexpectedSmiEvent(UnexpectedEventType.ParameterAvailable); 217throw SQL.UnexpectedSmiEvent(UnexpectedEventType.DefaultDatabaseChanged); 254throw SQL.UnexpectedSmiEvent(UnexpectedEventType.MetaDataAvailable); 262throw SQL.UnexpectedSmiEvent(UnexpectedEventType.RowAvailable); 270throw SQL.UnexpectedSmiEvent(UnexpectedEventType.RowAvailable); 278throw SQL.UnexpectedSmiEvent(UnexpectedEventType.StatementCompleted); 286throw SQL.UnexpectedSmiEvent(UnexpectedEventType.TransactionCommitted); 294throw SQL.UnexpectedSmiEvent(UnexpectedEventType.TransactionDefected); 302throw SQL.UnexpectedSmiEvent(UnexpectedEventType.TransactionEnlisted); 311throw SQL.UnexpectedSmiEvent(UnexpectedEventType.TransactionEnded); 319throw SQL.UnexpectedSmiEvent(UnexpectedEventType.TransactionRolledBack); 327throw SQL.UnexpectedSmiEvent(UnexpectedEventType.TransactionStarted);
fx\src\data\Microsoft\SqlServer\Server\SmiGettersStream.cs (5)
67throw SQL.StreamSeekNotSupported(); 72throw SQL.StreamWriteNotSupported(); 76throw SQL.StreamSeekNotSupported(); 80throw SQL.StreamWriteNotSupported(); 91throw SQL.StreamWriteNotSupported();
fx\src\data\Microsoft\SqlServer\Server\SmiSettersStream.cs (3)
67throw SQL.StreamSeekNotSupported(); 76throw SQL.StreamSeekNotSupported(); 87throw SQL.StreamReadNotSupported();
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (1)
676throw SQL.SubclassMustOverride();
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (6)
79throw SQL.SqlPipeCommandHookedUpToNonContextConnection( ); 95throw SQL.SqlPipeMessageTooLong( message.Length ); 257throw SQL.SqlPipeErrorRequiresSendEnd(); 341throw SQL.SqlPipeIsBusy( ); 360throw SQL.SqlPipeAlreadyHasAnOpenResultSet( methodName ); 366throw SQL.SqlPipeDoesNotHaveAnOpenResultSet( methodName );
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (7)
93throw SQL.SqlNullValue(); 119throw SQL.NonBlobColumn(metaData.Name); 130throw SQL.SqlNullValue(); 2467throw SQL.MoneyOverflow(decimalValue.ToString(CultureInfo.InvariantCulture)); 2739throw SQL.SqlNullValue(); 3750throw SQL.EnumeratedRecordFieldCountChanged(recordNumber); 3755throw SQL.EnumeratedRecordMetaDataChanged(record.GetName(i), recordNumber);
fx\src\data\System\Data\Sql\SqlMetaData.cs (13)
204SQL.InvalidSqlDbTypeForConstructor(dbType); 441throw SQL.InvalidSqlDbTypeForConstructor(dbType); 505throw SQL.InvalidSqlDbTypeForConstructor(dbType); 560throw SQL.InvalidSqlDbTypeForConstructor(dbType); 602throw SQL.PrecisionValueOutOfRange(precision); 605throw SQL.ScaleValueOutOfRange(scale); 608throw SQL.TimeScaleValueOutOfRange(scale); 611throw SQL.InvalidSqlDbTypeForConstructor(dbType); 637throw SQL.InvalidSqlDbTypeForConstructor(dbType); 663throw SQL.InvalidSqlDbTypeForConstructor(dbType); 688throw SQL.NameTooLong("name"); 696throw SQL.InvalidSortOrder(columnSortOrder); 701throw SQL.MustSpecifyBothSortOrderAndOrdinal(columnSortOrder, sortOrdinal);
fx\src\data\System\Data\Sql\SqlNotificationRequest.cs (1)
23: this(null, null, SqlClient.SQL.SqlDependencyTimeoutDefault) {}
fx\src\data\System\Data\SqlClient\assemblycache.cs (1)
69throw SQL.UDTInvalidSqlType(orig.AssemblyQualifiedName);
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (1)
230string sniErrorMessage = SQL.GetSNIErrorMessage(sniError);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Algorithm.cs (3)
272throw SQL.InvalidCipherTextSize(cipherText.Length, minimumCipherTextLength); 279throw SQL.InvalidAlgorithmVersion(cipherText[startIndex], _algorithmVersion); 304throw SQL.InvalidAuthenticationTag();
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256EncryptionKey.cs (1)
76throw SQL.InvalidKeySize(_algorithmName,
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
39throw SQL.InvalidEncryptionType(SqlAeadAes256CbcHmac256Algorithm.AlgorithmName,
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
43throw SQL.InvalidEncryptionType(SqlAes256CbcAlgorithm.AlgorithmName,
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (39)
294throw SQL.BulkLoadConflictingTransactionOption(); 336throw SQL.BulkLoadInvalidTimeout(value); 434throw SQL.BulkLoadInvalidDestinationTable(this.DestinationTableName, e); 437throw SQL.BulkLoadInvalidDestinationTable(this.DestinationTableName, null); 539throw SQL.BulkLoadNoCollation(); 559throw SQL.BulkLoadExistingTransaction(); 693throw SQL.BulkLoadLcidMismatch(sourceLcid, _SqlDataReaderRowSource.GetName(sourceColumnId), destinationLcid, metadata.column); 710throw (SQL.BulkLoadNonMatchingColumnMapping()); 791throw SQL.InvalidOperationInsideEvent(); 1167throw SQL.NotAvailableOnContextConnection(); 1299throw SQL.BulkLoadInvalidVariantValue(); 1308throw SQL.BulkLoadBulkLoadNotAllowDBNull(metadata.column); 1367throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, ADP.ParameterValueOutOfRange(sqlValue)); 1370throw SQL.BulkLoadCannotConvertValue(value.GetType(), mt, e); 1412throw SQL.BulkLoadStringTooLong(); 1444throw SQL.BulkLoadCannotConvertValue(value.GetType(), type, null); 1458throw SQL.BulkLoadCannotConvertValue(value.GetType(), type, e); 1470throw SQL.BulkLoadPendingOperation(); 1500throw SQL.BulkLoadPendingOperation(); 1534throw SQL.BulkLoadPendingOperation(); 1565throw SQL.BulkLoadPendingOperation(); 1606throw SQL.BulkLoadPendingOperation(); 1654throw SQL.BulkLoadPendingOperation(); 1686throw SQL.BulkLoadPendingOperation(); 1724throw SQL.BulkLoadPendingOperation(); 1764AsyncHelper.WaitForCompletion(reconnectTask, BulkCopyTimeout, () => { throw SQL.CR_ReconnectTimeout(); }, rethrowExceptions: false); 1771CreateOrValidateConnection(SQL.WriteToServer); 1904throw (SQL.BulkLoadNonMatchingColumnName(unquotedColumnName, e)); 1909throw (SQL.BulkLoadNonMatchingColumnName(unquotedColumnName)); 2113throw ADP.OpenConnectionRequired(SQL.WriteToServer, _connection.State); 2575throw SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex); 2588()=>{return SQL.BulkLoadInvalidDestinationTable(_destinationTableName, SQL.CR_ReconnectTimeout());}, CancellationToken.None); 2603exceptionConverter: (ex) => SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex)); 2608AsyncHelper.WaitForCompletion(reconnectTask, this.BulkCopyTimeout, () => { throw SQL.CR_ReconnectTimeout(); } ); 2611throw SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex); // preserve behavior (throw InvalidOperationException on failure to connect) 2638throw SQL.BulkLoadInvalidDestinationTable(_destinationTableName, ex); 2674source.SetException(SQL.BulkLoadMissingDestinationTable()); //no table to copy 2677throw SQL.BulkLoadMissingDestinationTable();
fx\src\data\System\Data\SqlClient\SqlBulkCopyColumnMappingCollection.cs (3)
59throw SQL.BulkLoadNonMatchingColumnMapping(); 90throw SQL.BulkLoadMappingInaccessible(); 157throw SQL.BulkLoadMappingsNamesOrOrdinalsOnly();
fx\src\data\System\Data\SqlClient\SqlClientEncryptionAlgorithmFactoryList.cs (1)
68throw SQL.UnknownColumnEncryptionAlgorithm(algorithmName,
fx\src\data\System\Data\SqlClient\SqlClientSymmetricKey.cs (1)
31throw SQL.NullColumnEncryptionKeySysErr();
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (19)
84throw SQL.NullEncryptedColumnEncryptionKey(); 88throw SQL.EmptyEncryptedColumnEncryptionKey(); 111throw SQL.InvalidAlgorithmVersionInEncryptedCEK(encryptedColumnEncryptionKey[0], _version[0]); 130throw SQL.InvalidCiphertextLengthInEncryptedCEK(cipherTextLength, keySizeInBytes, masterKeyPath); 138throw SQL.InvalidSignatureInEncryptedCEK(signatureLength, keySizeInBytes, masterKeyPath); 163throw SQL.InvalidCertificateSignature(masterKeyPath); 184throw SQL.NullColumnEncryptionKey(); 188throw SQL.EmptyColumnEncryptionKey(); 337throw SQL.NullKeyEncryptionAlgorithm(isSystemOp); 342throw SQL.InvalidKeyEncryptionAlgorithm(encryptionAlgorithm, RSAEncryptionAlgorithmWithOAEP, isSystemOp); 355throw SQL.LargeCertificatePathLength(masterKeyPath.Length, Int16.MaxValue, isSystemOp); 376throw SQL.NullCertificatePath(GetValidCertificateLocations(), isSystemOp); 380throw SQL.InvalidCertificatePath(masterKeyPath, GetValidCertificateLocations(), isSystemOp); 405throw SQL.InvalidCertificatePath(keyPath, GetValidCertificateLocations(), isSystemOp); 422throw SQL.InvalidCertificateLocation(certParts[0], keyPath, GetValidCertificateLocations(), isSystemOp); 436throw SQL.InvalidCertificateStore(certParts[certParts.Length - 2], keyPath, _myCertificateStore, isSystemOp); 445throw SQL.EmptyCertificateThumbprint(keyPath, isSystemOp); 478throw SQL.CertificateNotFound(thumbprint, storeName.ToString(), storeLocation.ToString(), isSystemOp); 485throw SQL.CertificateWithNoPrivateKey(masterKeyPath, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (16)
64throw SQL.NullEncryptedColumnEncryptionKey(); 69throw SQL.EmptyEncryptedColumnEncryptionKey(); 91throw SQL.InvalidAlgorithmVersionInEncryptedCEK(encryptedColumnEncryptionKey[0], _version[0]); 110throw SQL.InvalidCiphertextLengthInEncryptedCEKCng(cipherTextLength, keySizeInBytes, masterKeyPath); 118throw SQL.InvalidSignatureInEncryptedCEKCng(signatureLength, keySizeInBytes, masterKeyPath); 143throw SQL.InvalidSignature(masterKeyPath); 165throw SQL.NullColumnEncryptionKey(); 169throw SQL.EmptyColumnEncryptionKey(); 281throw SQL.NullKeyEncryptionAlgorithm(isSystemOp); 286throw SQL.InvalidKeyEncryptionAlgorithm(encryptionAlgorithm, RSAEncryptionAlgorithmWithOAEP, isSystemOp); 301throw SQL.NullCngKeyPath(isSystemOp); 305throw SQL.InvalidCngPath(masterKeyPath, isSystemOp); 402throw SQL.InvalidCngKey(keyPath, cngProviderName, keyIdentifier, isSystemOp); 420throw SQL.InvalidCngPath(keyPath, isSystemOp); 428throw SQL.EmptyCngName(keyPath, isSystemOp); 433throw SQL.EmptyCngKeyId(keyPath, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (17)
70throw SQL.NullEncryptedColumnEncryptionKey(); 75throw SQL.EmptyEncryptedColumnEncryptionKey(); 97throw SQL.InvalidAlgorithmVersionInEncryptedCEK(encryptedColumnEncryptionKey[0], _version[0]); 116throw SQL.InvalidCiphertextLengthInEncryptedCEKCsp(cipherTextLength, keySizeInBytes, masterKeyPath); 124throw SQL.InvalidSignatureInEncryptedCEKCsp(signatureLength, keySizeInBytes, masterKeyPath); 149throw SQL.InvalidSignature(masterKeyPath); 171throw SQL.NullColumnEncryptionKey(); 175throw SQL.EmptyColumnEncryptionKey(); 287throw SQL.NullKeyEncryptionAlgorithm(isSystemOp); 292throw SQL.InvalidKeyEncryptionAlgorithm(encryptionAlgorithm, RSAEncryptionAlgorithmWithOAEP, isSystemOp); 308throw SQL.NullCspKeyPath(isSystemOp); 312throw SQL.InvalidCspPath(masterKeyPath, isSystemOp); 422throw SQL.InvalidCspKeyIdentifier(keyName, keyPath, isSystemOp); 446throw SQL.InvalidCspPath(keyPath, isSystemOp); 454throw SQL.EmptyCspName(keyPath, isSystemOp); 459throw SQL.EmptyCspKeyId(keyPath, isSystemOp); 476throw SQL.InvalidCspName(providerName, keyPath, isSystemOp);
fx\src\data\System\Data\SqlClient\SqlCommand.cs (49)
224throw SQL.MARSUnspportedOnConnection(); 456throw SQL.CannotModifyPropertyAsyncOperationInProgress(SQL.Connection); 608throw SQL.CannotModifyPropertyAsyncOperationInProgress(SQL.Transaction); 716throw SQL.NotSupportedCommandType(value); 1373throw SQL.CR_ReconnectionCancelled(); 1436throw SQL.CR_ReconnectionCancelled(); 1550if (!result) { throw SQL.SynchronousCallMayNotPend(); } 1945throw SQL.NonXmlResult(); 3072AsyncHelper.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token); 3091AsyncHelper.WaitForCompletion(reconnectTask, timeout, () => { throw SQL.CR_ReconnectTimeout(); }); 3121if (!result) { throw SQL.SynchronousCallMayNotPend(); } 3910throw SQL.NoAttestationUrlSpecifiedForEnclaveBasedQuerySpDescribe(this._activeConnection.Parser.EnclaveType); 3930throw SQL.InvalidEncryptionKeyOrdinalEnclaveMetadata(requestedKey, columnEncryptionKeyTable.Count); 3942throw SQL.UnexpectedDescribeParamFormatParameterMetadata (); 4002throw SQL.InvalidEncryptionKeyOrdinalParameterMetadata(columnEncryptionKeyOrdinal, columnEncryptionKeyTable.Count); 4035throw SQL.ParamEncryptionMetadataMissing(rpc.parameters[paramIdx].ParameterName, rpc.GetCommandTextOrRpcName()); 4047throw SQL.UnexpectedDescribeParamFormatAttestationInfo (this._activeConnection.Parser.EnclaveType); 4055throw SQL.MultipleRowsReturnedForAttestationInfo(); 4072throw SQL.AttestationInfoNotReturnedFromSqlServer(this._activeConnection.Parser.EnclaveType, this._activeConnection.EnclaveAttestationUrl); 4084throw SQL.ProcEncryptionMetadataMissing(_SqlRPCBatchArray[i].rpcName); 4324if (string.IsNullOrWhiteSpace(this._activeConnection.EnclaveAttestationUrl)) throw SQL.NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage(this._activeConnection.Parser.EnclaveType); 4327if (string.IsNullOrWhiteSpace(enclaveType)) throw SQL.EnclaveTypeNullForEnclaveBasedQuery(); 4338throw SQL.ExceptionWhenGeneratingEnclavePackage(e); 4358AsyncHelper.SetTimeoutException(completion, timeout, SQL.CR_ReconnectTimeout, timeoutCTS.Token); 4379AsyncHelper.WaitForCompletion(reconnectTask, timeout, () => { throw SQL.CR_ReconnectTimeout(); }); 4448throw SQL.NullEnclavePackageForEnclaveBasedQuery(this._activeConnection.Parser.EnclaveType, this._activeConnection.EnclaveAttestationUrl); 4525if (!result) { throw SQL.SynchronousCallMayNotPend(); } 4700if (!result) { throw SQL.SynchronousCallMayNotPend(); } 4816throw SQL.TceNotSupported (); 4898throw SQL.NotificationsRequireYukon(); 4903throw SQL.NotAvailableOnContextConnection(); 4911throw SQL.PendingBeginXXXExists(); 4931throw SQL.OperationCancelled(); 4955throw SQL.OperationCancelled(); 5168throw SQL.InvalidDataTypeForEncryptedParameter(thisParam.ParameterNameFixed, rec.tdsType, TdsEnums.SQLBIGVARBINARY); 5193throw SQL.ParamDecryptionFailed(thisParam.ParameterNameFixed, null, e); 5772throw SQL.MustSetUdtTypeNameForUdtParams(); 5779throw SQL.MustSetTypeNameForParam(mt.TypeName, sqlParam.ParameterNameFixed); 6123throw SQL.BatchedUpdateColumnEncryptionSettingMismatch(); 6203throw SQL.NotificationsNotAvailableOnContextConnection(); 6273throw SQL.ParameterSizeRestrictionFailure(index); 6279throw SQL.ParameterSizeRestrictionFailure(index); 6287throw SQL.ParameterSizeRestrictionFailure(index); 6294throw SQL.ParameterSizeRestrictionFailure(index); 6301throw SQL.ParameterSizeRestrictionFailure(index); 6316throw SQL.ParameterSizeRestrictionFailure(index); 6324throw SQL.ParameterSizeRestrictionFailure(index);
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (2)
129throw System.Data.SqlClient.SQL.NotSupportedCommandType(commandType); 257throw SQL.BatchedUpdatesNotAvailableOnContextConnection();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (38)
55throw SQL.CannotGetSqlColumnEncryptionEnclaveProviderConfig(e); 167throw SQL.NullCustomKeyStoreProviderDictionary(); 178throw SQL.EmptyProviderName(); 184throw SQL.InvalidCustomKeyStoreProviderName(key, ADP.ColumnEncryptionSystemProviderNamePrefix); 190throw SQL.NullProviderValue(key); 199throw SQL.CanOnlyCallOnce(); 330throw SQL.SettingCredentialWithIntegratedArgument(); 396throw SQL.NotAvailableOnContextConnection(); 593throw SQL.SettingIntegratedWithCredential(); 674throw SQL.NotAvailableOnContextConnection(); 755throw SQL.NotAvailableOnContextConnection(); 810throw SQL.SettingCredentialWithIntegratedInvalid(); 1046throw SQL.NotAvailableOnContextConnection(); 1172throw SQL.NotAvailableOnContextConnection(); 1217throw SQL.MARSUnspportedOnConnection(); 1258throw SQL.CR_AllAttemptsFailed(e, _originalConnectionId); 1261throw SQL.CR_NextAttemptWillExceedQueryTimeout(e, _originalConnectionId); 1295OnError(SQL.CR_UnrecoverableClient(ClientConnectionId), true, null); 1337OnError(SQL.CR_UnrecoverableServer(ClientConnectionId), true, null); 1414result.SetException(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 1525throw SQL.CredentialsNotProvided(connectionOptions.Authentication); 1678throw SQL.NotAvailableOnContextConnection(); 1699throw SQL.MARSUnspportedOnConnection(); 2035throw SQL.ChangePasswordArgumentMissing("connectionString"); 2038throw SQL.ChangePasswordArgumentMissing("newPassword"); 2049throw SQL.ChangePasswordConflictsWithSSPI(); 2052throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.KEY.AttachDBFilename); 2055throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.KEY.Context_Connection); 2074throw SQL.ChangePasswordArgumentMissing("connectionString"); 2079throw SQL.ChangePasswordArgumentMissing("credential"); 2083throw SQL.ChangePasswordArgumentMissing("newSecurePassword");; 2104throw SQL.ChangePasswordConflictsWithSSPI(); 2108throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.KEY.AttachDBFilename); 2112throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.KEY.Context_Connection); 2132throw SQL.ChangePasswordRequiresYukon(); 2165throw SQL.NotAvailableOnContextConnection(); 2179throw SQL.NotAvailableOnContextConnection(); 2238throw SQL.UDTUnexpectedResult(metaData.udtAssemblyQualifiedName);
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (2)
100throw SQL.NonLocalSSEInstance(); 192throw SQL.NotAvailableOnContextConnection();
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (10)
304throw SQL.ContextUnavailableOutOfProc(); 313throw SQL.ContextAllowsLimitedKeywords(); 349throw SQL.InvalidPacketSizeValue(); 379throw SQL.MultiSubnetFailoverWithFailoverPartner(serverProvidedFailoverPartner: false, internalConnection: null); 415throw SQL.UserInstanceFailoverNotCompatible(); 427throw SQL.ContextAllowsOnlyTypeSystem2005(); 468throw SQL.AuthenticationAndIntegratedSecurity(); 472throw SQL.IntegratedWithUserIDAndPassword(); 476throw SQL.InteractiveWithoutUserID(); 480throw SQL.InteractiveWithPassword();
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (1)
755throw SQL.InvalidPacketSizeValue();
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (36)
224throw SQL.PendingBeginXXXExists(); 242throw SQL.SynchronousCallMayNotPend(); 865throw SQL.SynchronousCallMayNotPend(); 1127throw SQL.ConnectionDoomed(); 1435throw SQL.XmlReaderNotSupportOnColumnType(_metaData[i].column); 1464throw SQL.StreamNotSupportOnEncryptedColumn(_metaData[i].column); 1471throw SQL.StreamNotSupportOnColumnType(_metaData[i].column); 1513throw SQL.NonBlobColumn(_metaData[i].column); 1537if (!result) { throw SQL.SynchronousCallMayNotPend(); } 1563throw SQL.SequentialAccessNotSupportedOnEncryptedColumn(_metaData[i].column); 1772if (!result) { throw SQL.SynchronousCallMayNotPend(); } 1775if (!result) { throw SQL.SynchronousCallMayNotPend(); } 1887throw SQL.TextReaderNotSupportOnColumnType(_metaData[i].column); 1893throw SQL.SequentialAccessNotSupportedOnEncryptedColumn(_metaData[i].column); 1974throw SQL.SequentialAccessNotSupportedOnEncryptedColumn(_metaData[i].column); 2105throw SQL.NonCharColumn(_metaData[i].column); 2421if (!result) { throw SQL.SynchronousCallMayNotPend(); } 2574if (!result) { throw SQL.SynchronousCallMayNotPend(); } 2627if (!result) { throw SQL.SynchronousCallMayNotPend(); } 2662throw SQL.SqlNullValue(); 2695if (!result) { throw SQL.SynchronousCallMayNotPend(); } 2944throw SQL.PendingBeginXXXExists(); 2953if (!result) { throw SQL.SynchronousCallMayNotPend(); } 3118throw SQL.PendingBeginXXXExists(); 3127if (!result) { throw SQL.SynchronousCallMayNotPend(); } 3312if (!result) { throw SQL.SynchronousCallMayNotPend(); } 3393if (!result) { throw SQL.SynchronousCallMayNotPend(); } 3398throw SQL.InvalidRead(); 3852throw SQL.InvalidRead(); 3861throw SQL.InvalidRead(); 3874throw SQL.InvalidRead(); 3887throw SQL.InvalidRead(); 3907throw SQL.InvalidRead(); 3955source.SetException(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 4201return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists())); 4266source.SetException(ADP.ExceptionWithStackTrace(SQL.PendingBeginXXXExists()));
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (6)
141return ADP.CreatedTaskWithException<T>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 201return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 362return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 414return ADP.CreatedTaskWithException<bool>(ADP.ExceptionWithStackTrace(SQL.NotAvailableOnContextConnection())); 1049throw SQL.InvalidRead(); 1056throw SQL.InvalidRead(); //
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (5)
65throw SQL.UnknownSysTxIsolationLevel(systxIsolationLevel); 172throw SQL.UnsupportedSysTxForGlobalTransactions(); 176throw SQL.GlobalTransactionsNotEnabled(); 222throw SQL.PromotionFailed(promoteException); 340enlistment.Aborted(SQL.ConnectionDoomed());
fx\src\data\System\Data\SqlClient\SqlDependency.cs (14)
278public SqlDependency() : this(null, null, SQL.SqlDependencyTimeoutDefault) { 282public SqlDependency(SqlCommand command) : this(command, null, SQL.SqlDependencyTimeoutDefault) { 291throw SQL.SqlDepCannotBeCreatedInProc(); 294throw SQL.InvalidSqlDependencyTimeout("timeout"); 403throw SQL.SqlDependencyEventNoDuplicate(); // SQL BU DT 382314 572throw SQL.SqlDepCannotBeCreatedInProc(); 646throw SQL.SqlDependencyDuplicateStart(); 697throw SQL.SqlDepCannotBeCreatedInProc(); 901throw SQL.SqlDepDefaultOptionsButNoStart(); 909throw SQL.SqlDependencyNoMatchingServerStart(); 920throw SQL.SqlDependencyNoMatchingServerStart(); 958throw SQL.SqlDependencyNoMatchingServerDatabaseStart(); 1078 int seconds = SQL.SqlDependencyServerTimeout; 1111throw SQL.SqlCommandHasExistingSqlNotificationRequest();
fx\src\data\System\Data\SqlClient\SqlDependencyListener.cs (4)
101_queue = SQL.SqlNotificationServiceDefault+"-"+guid; 130throw SQL.NotificationsRequireYukon(); 149throw SQL.SqlDependencyDatabaseBrokerDisabled(); 167_sprocName = SqlConnection.FixupDatabaseTransactionName(SQL.SqlNotificationStoredProcedureDefault+"-"+guid);
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (1)
335throw SQL.SqlDependencyIdMismatch();
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
213default: throw SQL.InvalidSqlDbType(target); 692throw SQL.InvalidSqlDbType((SqlDbType)tdsType);
fx\src\data\System\Data\SqlClient\SqlInternalConnection.cs (2)
506throw SQL.UnsupportedSysTxForGlobalTransactions(); 516throw SQL.CannotGetDTCAddress();
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (2)
239throw SQL.ContextConnectionIsInUse(); 262throw SQL.NestedTransactionScopesNotSupported(); // can't use TransactionScope(RequiresNew) inside a Sql Transaction.
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (32)
371throw SQL.UserInstanceNotAvailableInProc(); 711throw SQL.MARSUnspportedOnConnection(); 941throw SQL.ConnectionDoomed(); 948throw SQL.ConnectionLockedForBcpEvent(); 990throw SQL.SnapshotNotSupported(IsolationLevel.Snapshot); 993throw SQL.NotSupportedIsolationLevel(iso); 1076throw SQL.NotSupportedIsolationLevel(iso); 1156throw SQL.CannotCompleteDelegatedTransactionWithOpenResults(this); 1206throw SQL.ParsingError(ParsingErrorState.FedAuthNotAcknowledged); 1210throw SQL.ParsingError(ParsingErrorState.FedAuthInfoNotReceived); 1216throw SQL.CR_NoCRAckAtReconnection(this); 1227throw SQL.CR_EncryptionChanged(this); 1418throw SQL.ROR_FailoverNotSupportedConnString(); 1422throw SQL.ROR_FailoverNotSupportedServer(this); 1563throw SQL.MultiSubnetFailoverWithFailoverPartner(serverProvidedFailoverPartner: true, internalConnection: this); 1570throw SQL.ROR_RecursiveRoutingNotSupported(this); 1574throw SQL.ROR_TimeoutAfterRoutingInfo(this); 1624throw SQL.MultiSubnetFailoverWithFailoverPartner(serverProvidedFailoverPartner: true, internalConnection: this); 1820throw SQL.ROR_RecursiveRoutingNotSupported(this); 1904throw SQL.InvalidPartnerConfiguration(failoverHost, CurrentDatabase); 2172throw SQL.ROR_InvalidRoutingInfo(this); 2188throw SQL.CR_TDSVersionNotPreserved(this); 2377if (authProvider == null) throw SQL.CannotFindAuthProvider(ConnectionOptions.Authentication.ToString()); 2496throw SQL.ParsingErrorFeatureId(ParsingErrorState.UnrequestedFeatureAckReceived, featureId); 2536throw SQL.ParsingErrorFeatureId(ParsingErrorState.UnrequestedFeatureAckReceived, featureId); 2547throw SQL.ParsingError(ParsingErrorState.FedAuthFeatureAckContainsExtraData); 2554throw SQL.ParsingErrorLibraryType(ParsingErrorState.FedAuthFeatureAckUnknownLibraryType, (int)_fedAuthFeatureExtensionData.Value.libraryType); 2588throw SQL.ParsingError(ParsingErrorState.TceUnknownVersion); 2594throw SQL.ParsingErrorValue(ParsingErrorState.TceInvalidVersion, supportedTceVersion); 2616throw SQL.ParsingError(ParsingErrorState.CorruptedTdsStream); 2633throw SQL.ParsingError(ParsingErrorState.CorruptedTdsStream); 2650throw SQL.ParsingErrorFeatureId(ParsingErrorState.UnknownFeatureAck, featureId);
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (7)
260throw SQL.ConnectionLockedForBcpEvent(); 307throw SQL.OpenResultCountExceeded(); 354throw SQL.OpenResultCountExceeded(); 369throw SQL.ConnectionLockedForBcpEvent(); 408throw SQL.ConnectionLockedForBcpEvent(); 420throw SQL.NullEmptyTransactionName(); 459throw SQL.NullEmptyTransactionName();
fx\src\data\System\Data\SqlClient\SqlParameter.cs (22)
540throw SQL.InvalidParameterNameLength(value); 580throw SQL.PrecisionValueOutOfRange(value); 647throw SQL.InvalidSqlDbType(value); 885throw SQL.ParameterInvalidVariant(this.ParameterName); 1098throw SQL.NotEnoughColumnsInStructuredType(); 1133throw SQL.NotEnoughColumnsInStructuredType(); 1191throw SQL.SortOrdinalGreaterThanFieldCount(i, colMeta.SortOrdinal); 1196throw SQL.DuplicateSortOrdinal(colMeta.SortOrdinal); 1235throw SQL.MissingSortOrdinal(i); 1256throw SQL.NotEnoughColumnsInStructuredType(); 1260throw SQL.IEnumerableOfSqlDataRecordHasNoRows(); 1272throw SQL.NotEnoughColumnsInStructuredType(); 1298throw SQL.InvalidSchemaTableOrdinals(); 1313throw SQL.InvalidSchemaTableOrdinals(); 1504throw SQL.MustSetUdtTypeNameForUdtParams (); 1507throw SQL.UnexpectedUdtTypeNameForNonUdtParams(); 1513throw SQL.MustSetTypeNameForParam(metaType.TypeName, this.ParameterName); 1516throw SQL.UnsupportedTVPOutputParameter(this.Direction, this.ParameterName); 1520throw SQL.DBNullNotSupportedForTVPValues(this.ParameterName); 1524throw SQL.UnexpectedTypeNameForNonStructParams(this.ParameterName); 1749throw SQL.InvalidUdt3PartNameFormat(); 1752throw SQL.InvalidParameterTypeNameFormat();
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (10)
127throw SQL.NullColumnEncryptionAlgorithm(SqlClientEncryptionAlgorithmFactoryList.GetInstance().GetRegisteredCipherAlgorithmNames()); 139throw SQL.UnknownColumnEncryptionAlgorithmId(cipherAlgorithmId, GetRegisteredCipherAlgorithmIds()); 164SQL.NullCipherText(); 199throw SQL.NullPlainText (); 208throw SQL.ThrowDecryptionFailed(keyStr, valStr, e); 291throw SQL.ColumnMasterKeySignatureNotFound(keyPath); 305throw SQL.UntrustedKeyPath(keyPath, serverName); 312throw SQL.InvalidKeyStoreProviderName(keyStoreName, 331throw SQL.UnableToVerifyColumnMasterKeySignature(e); 335throw SQL.ColumnMasterKeySignatureVerificationFailed(keyPath);
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (3)
74throw SQL.UntrustedKeyPath(keyInfo.keyPath, serverName); 81throw SQL.UnrecognizedKeyStoreProviderName(keyInfo.keyStoreName, 95throw SQL.KeyDecryptionFailed (keyInfo.keyStoreName, keyHex, e);
fx\src\data\System\Data\SqlClient\TdsParser.cs (73)
548throw SQL.InstanceFailure(); 882if (!result) { throw SQL.SynchronousCallMayNotPend(); } 891if (!_physicalStateObj.TryProcessHeader()) { throw SQL.SynchronousCallMayNotPend(); } 894throw SQL.ParsingError(ParsingErrorState.CorruptedTdsStream); 900if (!result) { throw SQL.SynchronousCallMayNotPend(); } 905throw SQL.InvalidSQLServerVersionUnknown(); 1069throw SQL.ParsingErrorValue(ParsingErrorState.FedAuthRequiredPreLoginResponseInvalidValue, (int)payload[payloadOffset]); 1344throw SQL.MultiSubnetFailoverWithMoreThan64IPs(); 1348throw SQL.MultiSubnetFailoverWithInstanceSpecified(); 1352throw SQL.MultiSubnetFailoverWithNonTcpProtocol(); 1417errorMessage = SQL.GetSNIErrorMessage((int)sniError.sniError); 1875throw SQL.ParsingErrorToken(ParsingErrorState.InvalidTdsTokenReceived, token); // MDAC 82443 2421throw SQL.SynchronousCallMayNotPend(); 2903throw SQL.TceNotSupported (); 2910throw SQL.EnclaveComputationsNotSupported (); 2917throw SQL.EnclaveTypeNotReturned (); 2925throw SQL.ParsingErrorLength(ParsingErrorState.SessionStateLengthTooShort, length); 2939throw SQL.ParsingErrorStatus(ParsingErrorState.SessionStateInvalidStatus, status); 3052throw SQL.InvalidTDSVersion(); 3056if (increment != TdsEnums.SHILOHSP1_INCREMENT) { throw SQL.InvalidTDSVersion(); } 3060if (increment != TdsEnums.YUKON_INCREMENT) { throw SQL.InvalidTDSVersion(); } 3064if (increment != TdsEnums.KATMAI_INCREMENT) { throw SQL.InvalidTDSVersion(); } 3068if (increment != TdsEnums.DENALI_INCREMENT) { throw SQL.InvalidTDSVersion(); } 3072throw SQL.InvalidTDSVersion(); 3140throw SQL.ParsingErrorLength(ParsingErrorState.FedAuthInfoLengthTooShortForCountOfInfoIds, tokenLen); 3147throw SQL.ParsingError(ParsingErrorState.FedAuthInfoFailedToReadCountOfInfoIds); 3167throw SQL.ParsingError(ParsingErrorState.FedAuthInfoFailedToReadTokenStream); 3200throw SQL.ParsingErrorOffset(ParsingErrorState.FedAuthInfoInvalidOffset, unchecked((int)dataOffset)); 3210throw SQL.ParsingError(ParsingErrorState.FedAuthInfoFailedToReadData, e); 3214throw SQL.ParsingError(ParsingErrorState.FedAuthInfoDataNotUnicode, e); 3239throw SQL.ParsingErrorLength(ParsingErrorState.FedAuthInfoLengthTooShortForData, tokenLen); 3247throw SQL.ParsingError(ParsingErrorState.FedAuthInfoDoesNotContainStsurlAndSpn); 3588throw SQL.ParsingErrorValue(ParsingErrorState.TceInvalidOrdinalIntoCipherInfoTable, index); 3786throw SQL.SynchronousCallMayNotPend(); 3792throw SQL.SynchronousCallMayNotPend(); 3802throw SQL.SynchronousCallMayNotPend(); 3809throw SQL.SynchronousCallMayNotPend(); 3819throw SQL.SynchronousCallMayNotPend(); 5041throw SQL.UnsupportedNormalizationVersion(normalizationVersion); 5287throw SQL.UnsupportedDatatypeEncryption(metaType.TypeName); 5358throw SQL.ColumnDecryptionFailed(columnName, null, e); 6174throw SQL.MoneyOverflow(decimalValue.ToString(CultureInfo.InvariantCulture)); 6199throw SQL.MoneyOverflow(value.ToString(CultureInfo.InvariantCulture)); 6238throw SQL.MoneyOverflow(value.ToString(CultureInfo.InvariantCulture)); 6261throw SQL.TimeOverflow(value.ToString()); 6275throw SQL.TimeOverflow(value.ToString()); 7209throw SQL.InvalidSSPIPacketSize(); // SqlBu 332503 7556if (!result) { throw SQL.SynchronousCallMayNotPend(); } 7603throw SQL.InvalidSSPIPacketSize(); // SqlBu 332503 7938throw SQL.ConnectionLockedForBcpEvent(); 8140throw SQL.ParamInvalidForceColumnEncryptionSetting(param.ParameterName, rpcext.GetCommandTextOrRpcName()); 8147throw SQL.ParamUnExpectedEncryptionMetadata(param.ParameterName, rpcext.GetCommandTextOrRpcName()); 8212throw SQL.PrecisionValueOutOfRange(precision); 8274throw SQL.ParamEncryptionFailed(param.ParameterName, null, e); 8394throw SQL.MustSetUdtTypeNameForUdtParams(); 9399SQL.StreamNotSupportOnEncryptedColumn(column); 10074throw SQL.SmallDateTimeOverflow(dt.ToString()); 10094throw SQL.UDTUnexpectedResult(value.GetType().AssemblyQualifiedName); 10499throw SQL.OperationCancelled(); 10659throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture)); 10683throw SQL.TimeScaleValueOutOfRange(scale); 10690throw SQL.TimeScaleValueOutOfRange(scale); 10750throw SQL.UnsupportedNormalizationVersion(normalizationVersion); 10846throw SQL.SmallDateTimeOverflow(MetaType.ToDateTime(dt.days, dt.time, 4).ToString(CultureInfo.InvariantCulture)); 10891throw SQL.TimeScaleValueOutOfRange(scale); 10897throw SQL.TimeScaleValueOutOfRange(scale); 10903throw SQL.TimeScaleValueOutOfRange(scale); 10908throw SQL.UnsupportedDatatypeEncryption(type.TypeName); 10921throw SQL.UnsupportedNormalizationVersion(normalizationVersion); 11017throw SQL.SmallDateTimeOverflow(dt.ToString()); 11058throw SQL.UnsupportedDatatypeEncryption(type.TypeName); 11150if (!result) { throw SQL.SynchronousCallMayNotPend(); } 11318if (!result) { throw SQL.SynchronousCallMayNotPend(); }
fx\src\data\System\Data\SqlClient\TdsParserSafeHandles.cs (1)
196throw SQL.SNIPacketAllocationFailure();
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (11)
958throw SQL.OperationCancelled(); 1041throw SQL.ParsingError(ParsingErrorState.CorruptedTdsStream); 1109throw SQL.InvalidPacketSize(); 1146throw SQL.InvalidInternalPacketSize (errormessage); 1672if (!result) { throw SQL.SynchronousCallMayNotPend(); } 1739if (!result) { throw SQL.SynchronousCallMayNotPend(); } 2229throw SQL.ConnectionDoomed(); 2414throw SQL.InvalidInternalPacketSize (Res.GetString(Res.SqlMisc_InvalidArraySizeMessage)); 2440throw SQL.ParsingError(ParsingErrorState.ProcessSniPacketFailed); 2878throw SQL.OperationCancelled(); 3012SNINativeMethodWrapper.SNIPacketSetData(attnPacket, SQL.AttentionHeader, TdsEnums.HEADER_LEN, null, null);