Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate and Remote Views
Message
From
14/09/1999 13:52:55
 
 
To
14/09/1999 13:12:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00264455
Message ID:
00264595
Views:
15
Thanks for the clue!

It seems some dba decided to add in a default mechanism to the table I am accessing that for some reason changes a key value. The keys came across from sql server so the default just came into the view. I changed the view so that the key is based on the fields that are not modifiable and everything now works great.

Thanks again.



>>I've come across a little glitch in some code that has stumped me. Maybe someone out there can give me some idea on how to resolve.
>>
>>I have a remote view that is tied to a sql server backend table. It is a remote view to one table only. No muli tables are being used.
>>
>>In code, I am deleting data in a memo field for a record and then setting up a transaction save to sql server. Upon issuing a tableupdate(2,.t.,alias(),aSaveError), I get a return of .t. that the update ocurred and that no errors were logged to the error array.
>>
>>When you browse the sql server data, the changes were not made. When you browse the view following the tableupdate, the record that was modified is no longer there. But yet it exists on the sqlserver data with the old data.
>>
>>Any ideas on what could be going wrong? BTW, this is in VFP 5.0a. The client is not able to move to 6.0 at this time.
>>
>>Pat.
>
>You'll see similar behavior when you issue a TABLEUPDATE() and the key fields in the view did not match any key fields in the base table. The view record will be deleted. Is this possible for whatever reason?
Patrick L. Stovall
Senior Architect/Developer
MCP - C#

VeroQuest
P.O.Box 7216
Kalispell, MT 59904
Previous
Reply
Map
View

Click here to load this message in the networking platform