Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve autoincrement value from SQL server remote view
Message
 
 
To
08/02/2002 16:47:45
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00550467
Message ID:
00618256
Views:
48
>I need to know the ID before I save it because additions to child tables can be made before the parent table is saved. A way to get around the 2 additions is by using the flags.
>
>If there is a reusable record that is not inprocess grab it and flag it as inprocess, that user now has a number, else you insert a new record flag it as reusable and inprocess and commit, you now have a number then the next user won't be able to get that record number.
>
>If you then click save it unflags resuable and inprocess and you save it.
>If revert is clicked you unflag inprocess and commit.
>
>I don't know how to do this with a remote view of the SQL server data.
>

Tyler,
You can't do this with remote views. You need to handle this using SPT and (IMO) a stored procedure. The remote view can still handle the table updates but you need the more powerful/flexible SPT approach to handle this type of processing.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform