Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keys to the kingdom
Message
From
23/01/2015 09:18:53
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/01/2015 13:14:33
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01614113
Message ID:
01614199
Views:
41
>Hi All,
>
>I've finally gotten around to retrofitting some older tables in my app with primary and foreign keys. Is there a method to "backfill" those tables with key values after they've been re-structured, avoiding the dreaded 'uniqueness of [key field] is violated' error? New installs aren't, of course, a problem. It's the existing installations that I'm referring to. My app uses VMP as a framework, and Stonefield DB toolkit.

If the question is "what value do I use for this one-time fill", the answer is simply recno(), or something based on it (I've seen recno()*5 at times... there are varying schools of thought out there).

The rest, as Tamar said.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform