Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALTER TABLE dropping index
Message
From
24/04/2014 12:46:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01598940
Message ID:
01598997
Views:
41
>Hi,
>
>Is this a known issue (not mentioned in the docs AFAICS):
>
>I'm issuing the following:
>
>ALTER TABLE Printers ALTER COLUMN DeviceName C(250)
>
>There's a regular index on this field (which initially has a length of 40)
>
>I get an 'Invalid key length' message box but the field length is altered and *the index is dropped* !
>
>Surely it should completely reject the change ?

If you neef the index for anything then ==, yes. Or at least only up to 120/240 chars, depending on your settings.
If you only need == then you might use a HASH as index. I do this with some memos.

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform