System.Data.Odbc.OdbcException Class

The exception that is generated when a warning or error is returned by an ODBC data source. This class cannot be inherited.

See Also: OdbcException Members


public sealed class OdbcException : System.Data.Common.DbException


This class is created whenever the System.Data.Odbc.OdbcDataAdapter encounters an error generated by the server (Client-side errors are raised as standard common language runtime exceptions.). It always contains at least one instance of System.Data.Odbc.OdbcError.

If the severity of the error is too great, the server may close the System.Data.Odbc.OdbcConnection. However, the user can reopen the connection and continue.

For general information about handling exceptions for a .NET Framework data provider, see System.Data.SqlClient.SqlException.


Namespace: System.Data.Odbc
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0,