Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL PT problem - can't update #TempTable
Message
From
08/05/2006 18:25:40
 
 
To
08/05/2006 07:21:48
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01119994
Message ID:
01120205
Views:
13
This message has been marked as the solution to the initial question of the thread.
>
>* cSql is defined as a "Select .... from SomeTable ...Join... into #TempTable"
>* the selection works ok, buffering is 5
>
>nSql = SQLConnect('FleetSystem')       && 1
>
>? SQLExec(nSql,cSql)                   && 1
>
>? SQLExec(nSql,[Select * From #TempTable],'Test')    && 1
>
>Delete                                 && That's all the users can do here
>
>? CursorSetProp("Tables",'#TempTable') && .T.
>
>? CursorSetProp('SendUpdates',.T.,'Sqlresult')  && .T.
>
>? CursorGetProp("Tables")              && #TempTable
>
>? TableUpdate(.t.,.t.)                 && .F.
>
>? AError(errors)                       && No update tables are specified. Use the Tables property of the cursor.
>
>
>TIA & BR

Hi Peter,

In order for TABLEUPDATE to handle Delete operations the following properties should be set:
1) Tables
2) KeyFieldList
3) UpdateNameList

The UpdateNameList property should at least include information for all fields listed in KeyFieldList.

Thanks,
Aleksey.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform