Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making SQL Pass-Through Cursor Updatable
Message
From
06/03/2003 14:41:56
 
 
To
05/03/2003 06:00:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00760620
Message ID:
00762384
Views:
36
Thanks for your reply! I modified your code to use my data source. It's still not saving the change I make to the field "Paginated". Am I crazy or what? The code is below for your review. Any help would be appreciated.

lnHandle=Sqlstringconnect('DRIVER=SQL Server;SERVER=sqlserver;'+;
'DATABASE=MacroPro;Trusted_Connection=Yes')

SQLExec(lnHandle,'select * from dbo.routes','v_routes')
CursorSetProp('KeyFieldList','id','v_routes')
CursorSetProp('WhereType',1,'v_routes')
CursorSetProp('Tables','routes','v_routes')

CursorSetProp("UpdateNameList", ;
"paginated routes.paginated",'V_routes')

CursorSetProp('UpdatableFieldList','paginated','v_routes')
CursorSetProp('SendUpdates',.T.,'v_routes')
CursorSetProp('Buffering',5,'v_routes')

Browse title "before Update - edit"
Tableupdate(2,.T.,'v_routes')
SQLExec(lnHandle,'select * from dbo.routes','afterupdate')
SQLDisconnect(lnHandle)
Select afterupdate
Browse title "After update"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform