This documentation is archived and is not being maintained.

Troubleshooting Exceptions: System.Data.Odbc.OdbcException

An OdbcException exception is generated when a warning or error is returned by an ODBC data source.

Verify that you are connecting with valid credentials.

Check your credentials to make sure they are valid.

Verify that the server name is correct and that the server is running.

Make sure that you are using the correct server name, and that the server is reachable.

This exception is thrown whenever the OdbcDataAdapter encounters an error generated by the server.

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