The information in this article applies to:
SYMPTOMSWhen you try to add a row to an SQL Server table using Query Designer you receive the following error if one of the table's field names contains a "-":
CAUSEThe data tool creates an SQL INSERT statement that doesn't put quotes around field names. The generated INSERT statement would look like:
If data tools generated an INSERT statement that used double quotes around the field name, then the INSERT would work. The following syntax would work:
You can verify this by using the SQL Trace utility that ships with SQL
Server 6.5. You can use MS Query to test both INSERT statements.
RESOLUTION
You can work around this problem in the following ways:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual C++ version 6.0 for Windows. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: kbVC500bug kbVC600fix
Keywords : kbEEdition kbVC kbVC500bug kbVC600fix |
Last Reviewed: May 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |