BUG: ALTER TABLE Command Changes Field Type to Picture (130410)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q130410 SYMPTOMS
When you use the ALTER TABLE command to create a primary index tag, the
ALTER TABLE command changes the data type of the desired key field to the
Picture data type.
CAUSE
If the word KEY is not supplied when using the ALTER TABLE clause PRIMARY
KEY and the column data type and width is not supplied, Visual FoxPro
changes the data type of the desired key field to PICTURE rather than
generating a syntax error.
RESOLUTION
Provide the word KEY and the column data type and width when using the
PRIMARY KEY clause of the ALTER TABLE command, or use the ADD PRIMARY KEY
clause of the ALTER TABLE command.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbBug KB130410 |
---|
|