Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate and SQL string is too long
Message
From
30/11/2004 15:10:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/11/2004 01:34:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00959751
Message ID:
00965819
Views:
9
>>And when you select "All fields", or the default (preferably, I think), "Key and modified fields", VFP will generate a more complicated SQL statement, and that is where your SQL statement can get too long.
>
>Select "All fields" if your business rules depend on values of the unchanged fields. Otherwise changes by others can invalidate business-rule-wise your changes. The timestamp approach is better for this use case IMHO.
>
>Select "Key and modified fields" if your fields are totally independant, and you only have to be catch direct conflicts. The timestamp approach might show you unnecessary/false conflicts, but runs less risk of error 18.

I see. Yes, that makes sense.

It is now clear to me that I had never understood the different options. Specifically, I wasn't aware that conflicts would NOT be detected if "Key fields only" is selected.
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