Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP with SQL Server -- Pkey
Message
From
16/01/2001 14:41:49
 
 
To
16/01/2001 14:32:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00464309
Message ID:
00464340
Views:
20
>Thanks for the advice. What would you recommend or how would you recommend handling it?

Create a stored procedure with an output parameter that you would populate with the @@IDENTITY. It would look somewhat like this:
Create Procedure myProc 
(pField1 [varchar](50),.. etc., nIdent [int] OUTPUT)
As
Insert Into myDb.dbo.myTbl Values (pField1,.. etc.)
Set nIdent=@@IDENTITY

Although I don't know how you would call this from an RV (or if you can use it). I've only used SPT and ADO for this type of calls.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform