Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tableupdates with SQL pass-through troubles...
Message
From
04/12/1998 13:08:51
 
 
To
04/12/1998 13:01:13
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00164152
Message ID:
00164159
Views:
23
Hi Dave --

What is the source of the remote table? If it's SQL Server, then you may wish to put the database name in front of the table name as in:

=CURSORSETPROP("Tables","dbo.history","ahistory")


>I am attempting to update a remote table using sqlpassthru.
>
>Here is the error I get:
>"No update tables are specified. Use the Tables property of the cursor."
>
>Here is my code that I run from the command window:
>
>x = sqlcon("smccmpinv")
>y = sqlexec(x,"select * from history","ahistory")
>=CursorSetProp("Tables","history","ahistory")
>=CursorSetProp("KeyFieldList","tic_id","ahistory")
>=CursorSetProp("UpdatableFieldList","cred_yes","ahistory")
>=CursorSetProp("SendUpdates",.T.,"ahistory")
>replace cred_yes with .T.
>=Tableupdate()
>
>All of the cursorsetprops succeed and the connection and exec also work.
>The tableupdate() fails. If I attempt to move the record pointer, I get the above error. There is no table or field rule set on cred_yes.
>
>Any help is greatly appreciated.
>Thanks
>Dave Mihalik
>dmihalik@stansleygroup.com
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform