A "No mapping exists from DbType Object to a known OdbcType" error occurs when you configure the OdbcDataAdapter by using the Data Adapter Configuration Wizard (816802)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual C# .NET (2003)
- Microsoft ADO.NET (included with the .NET Framework 1.1)
SYMPTOMSWhen you configure the OdbcDataAdapter using the Data Adapter Configuration Wizard, you may receive the
following error message after you specify the SQL query string: No mapping exists from DbType Object to a known
OdbcType. CAUSEThe problem occurs because the query string that is
specified in the SELECT command of the Data Adapter Configuration Wizard is incorrect.
When the query string is incorrect, the Data Adapter Configuration Wizard
incorrectly generates the error message that is specified in the "Symptoms"
section instead of one of the following error messages: Invalid column name. -or- Invalid
table name. RESOLUTIONTo resolve this problem, specify a valid query string on the
Generate the SQL statements page when you configure the OdbcDataAdapter using the Data Adapter Configuration Wizard.STATUS This
behavior is by design.REFERENCESFor more information, visit the following .NET Framework SDK
v1.1 Documentation: Note: To access this link, you must install the .NET Framework SDK v1.1
Documentation
Modification Type: | Minor | Last Reviewed: | 3/10/2006 |
---|
Keywords: | kbtshoot kberrmsg kbDatabase kbProgramming kbprb KB816802 kbAudDeveloper |
---|
|