Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NativeSqlConnectionException Class

The exception that is thrown when an error is raised by an ODBC driver or an OLEDB provider during bulk copy operations.

System.Object
  System.Exception
    Microsoft.SqlServer.Replication.ReplicationAgentException
      Microsoft.SqlServer.Replication.NativeSqlConnectionException

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)
[SerializableAttribute]
[ComVisibleAttribute(false)]
public class NativeSqlConnectionException : ReplicationAgentException

The NativeSqlConnectionException type exposes the following members.

  NameDescription
Public methodNativeSqlConnectionException()Creates a new instance of the NativeSqlConnectionException class.
Public methodNativeSqlConnectionException(String)Creates a new instance of the NativeSqlConnectionException class with a specified error message.
Protected methodNativeSqlConnectionException(SerializationInfo, StreamingContext)Creates a new instance of the NativeSqlConnectionException class with serialized data.
Public methodNativeSqlConnectionException(String, Exception)Creates a new instance of the NativeSqlConnectionException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Top
  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyErrorSourceThe source of the error.
Public propertyHelpLink (Inherited from Exception.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertyMessageCodeGets the error code of the underlying error. (Inherited from ReplicationAgentException.)
Public propertySource (Inherited from Exception.)
Public propertySqlStateIndicates the Microsoft SQL Server SQL state for the error.
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSets the specified SerializationInfo with information about the exception. (Overrides ReplicationAgentException.GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Exception.)
Top
  NameDescription
Protected eventSerializeObjectState (Inherited from Exception.)
Top

ODBC and OLEDB are used when bulk copying data to generate the initial snapshot.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.