BUG: ADO: Append Cannot Be Used with OLE DB Provider For SQL Server if the Name of the Table Contains Spaces (294180)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft OLE DB Provider for SQL Server 7.0
- Microsoft OLE DB Provider for SQL Server 2000 2000.80.194
This article was previously published under Q294180 SYMPTOMS
When you use the SQL Server OLE DB to modify a table whose name contains spaces, and you use a catalog to obtain table information from the database, and you then attempt to use the Append method with ADO, you may receive the following error message:
Incorrect syntax near the keyword 'add'.
CAUSE
A table name that contains spaces must be enclosed in quotation marks ("") or brackets ([]). After it obtains catalog information on a table whose name contains spaces, ADO does not enclose the table name with quotation marks or brackets when Append calls are made.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
| Modification Type: | Major | Last Reviewed: | 8/24/2001 |
|---|
| Keywords: | kbbug kbSQLProg KB294180 |
|---|
|