BUG: Cannot Do Inserts to Oracle Tables With Mixed Case Column Name (198858)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q198858 SYMPTOMS
When trying to do an insert to an Oracle table, you receive the following error message:
Invalid Column Name
CAUSE
The SourceColumn Property of rdoColumns is bringing back the incorrect column name. It does not place the quotes around the column name as specified in the statement:
cn.Execute "CREATE TABLE mixed(""Col1"" varchar(20))"
This statement specifies quotes around Col1. In Oracle, this creates a column name "Col1."
RESOLUTION
Before trying the Insert, change the SourceColumn property to add the quotes around the column name. For example:
rs.rdoColumns(0).SourceColumn = """Col1"""
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbOracle kbRDO KB198858 |
---|
|