Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem updating from a remote view!!!
Message
From
27/05/1999 00:30:03
 
 
To
26/05/1999 11:53:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00222990
Message ID:
00223296
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform