The information in this article applies to:
SYMPTOMSWhen you try to add a row to an SQL Server table using DBGrid bound to a Remote Data Control, you receive the following error message if one of the table's field names contains a "-":
CAUSEThis problem occurs because the Remote Data Objects code is creating a SQL INSERT statement that doesn't put quotation marks around field names. The INSERT statement would resemble the following:
If RDO generated an INSERT statement that used double quotes around the
field name, then the INSERT would work. The following syntax would work:
RESOLUTIONEither rename the field so that it doesn't contain a hyphen or do the updates manually (where the developer creates the proper SQL syntax). STATUSThis is by design. SQL Server does not support the use of dashes in its identifiers, including server names, database names, tables, views, columns, indexes, triggers, procedures, defaults, and rules. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: RDO DBGrid kbvc500 kbmfc kbdatabase kbodbc kbdao
Keywords : |
Last Reviewed: August 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |