Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping the program causing problems
Message
De
28/10/2008 18:06:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356423
Message ID:
01357871
Vues:
15
>Hilmar, we don't use views but we've sort pkey type of field. but every time we add record we check existence such pkey and add only if it's not there so no duplicate records issue here.

Well, I may very well be on a wrong track, but you would get a similar situation if you
update MyTable set SomeField = m.SomeValue;
  where KeyField = m.KeyValue
In other words, the field you think is the key field should, indeed, be unique - or otherwise you'll be updating several records at a time.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform