Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote View
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00528705
Message ID:
00528829
Vues:
15
Hi Cristina,

Updating a view whose data fields come from more than one table can be -lots- of trouble. There can be issues with default values, triggers, primary key violations, null values, and a host of other "gotchas" that will cause you many headaches.

You might handle this more smoothly by creating a second, parameterized view containing the selected row or rows from ONLY the table you wish to update, populating those row(s), and then doing a TABLEUPDATE() on the smaller view. I've had success with this approach in several past apps.

HTH.

>I have a remote view with four tables. I want to update fields from only one
>table. When I insert a new record in my view and then I update with
>Tableupdate, the 1547 vfp error (Cannot insert an empty row from a view into
>its base table) appears. Why?
>
>--
>Regards,
>Cristina Bernárdez
>La Coruña - Spain
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform