Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server Table Update
Message
From
30/03/2013 04:01:57
 
 
To
29/03/2013 18:29:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01569522
Message ID:
01569558
Views:
36
The code below is exactly what I used to prepare the SQL cursor:

=cursorsetprop('Tables', lcTableSource)
=cursorsetprop('UpdateNameList', lcUpdateNameList)
=cursorsetprop('KeyFieldList', lcTableKeyField)
=cursorsetprop('UpdatableFieldList', lcUpdatableFieldList)
=cursorsetprop('SendUpdates', .T.)
=cursorsetprop('UpdateType', 1)
=cursorsetprop('Buffering', lnTableBuffering)

The field lcTableKeyField always contains the PK for that table, each table only has one PK, so I don't think the issue is with the PK list. The lcUpdateNameList is a field containing all of the field names, i.e. so I can update any field in the table.

Thanks in advance.
Previous
Reply
Map
View

Click here to load this message in the networking platform