Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoInc Data Type
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00726316
Message ID:
00726321
Views:
21
>Hi Everyone,
>
>In trying to add an autoinc data type to an existing table, it looks like I'm going to have to perform some kind of dump and reload due to the following behavior.
>
>1. Table designer doesn't add the identity values to existing records on restructure.
>2. Autoinc field is read only (can't REPLACE ALL...)
>
>Am I correct here? Any alternatives?

The easy way out for me was:

(1) Do a SQL Select of all the data in natural order to a cursor NOFILTER
(2) ZAP the table
(3) Modify the table structure to include the AutoInc field
(4) APPEND FROM the cursor you created in (1)

As long as you don't have RI rules that cascade deletes or restrict them, it's pretty safe even for tables participating in a DBC.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform