Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping the program causing problems
Message
From
28/10/2008 18:06:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/10/2008 16:32:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356423
Message ID:
01357871
Views:
14
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform