BUG: Table Designer Gives an Error with Quotes in a Column NameID: Q197798
|
When designing a table in Enterprise Manager, you may receive the following
error message:
The name <string> is invalid because it is empty, contains invalid
characters, or is too long.
This error occurs when you try to create a column name that includes a single quotation mark. This can occur either when you create a new table or rename a column in an existing table. The error occurs even if the column name is delimited with square brackets.
To work around this problem, try one of the following:
CREATE TABLE table1 ([a'b] int NOT NULL)
-or-
EXEC SP_RENAME [table1.col1], [col'1], 'COLUMN'
-or-
Microsoft has confirmed this to be a problem in SQL Server version 7.0.
Additional query words: Design Table Designer MMC SEM err msg quote
Keywords : SSrvEntMan kbbug7.00
Version : WINNT:7.0
Platform : winnt
Issue type : kbbug
Last Reviewed: April 19, 1999