Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem updating from a remote view!!!
Message
De
27/05/1999 00:30:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00222990
Message ID:
00223296
Vues:
25
>I first create a remote view from a table that resides on SQL Server 7.0 using the command 'CREATE SQL VIEW', then replace some of the fields within the view. So far so good, the fields in the view appear to have changed. Then I issue a TABLEUPDATE() and this is where the problems start. Modifying the view displays the fields with write properties, however the option 'SEND SQL UPDATES' is not enabled by default. I can find no way of setting this option, except when modifying the view manually.
>
>Please can someone help me get around this problem?
>
>Michelle

Like Josh said, the command you are looking for is DBSETPROP(). There are several things that need to be set to make a view updateable- it sounds like possible you have not specified a key field?

Anyway, if you are going to be creating and maintaining views in code (most of us do, I think), you really should look at the utility here in the files section called 'eView'. It makes setting these things a snap, and it also has the ability to generate the code that creates the view (like GenDBC, but so much more gracefully).
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform