Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get primary field values after insert to SPT curs
Message
From
15/07/2005 09:16:03
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
15/07/2005 06:22:22
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01032962
Message ID:
01033005
Views:
23
Generate the PK in your app.

>I created a SPT cursor and make it updatable.
>If adding new rows using tableupdate(), SQL server fills the primary key fields.
>
>I want to get back filled primary key values to SPR cursor because the update conflict error occurs otherwise.
>
>I tried
REQUERY('mysptcursor')
>
>but this returns
>
>Function not supported for SQL pass-through cursors (Error 1504)
>
>refresh() function does not return error but does not do anything.
>
>I have read from somewhere that it is possible to use REQUERY() with SPT cursors.
>
>Any idea ?
>
>Andrus.
Previous
Reply
Map
View

Click here to load this message in the networking platform