Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to answer negative VFP attitude? Help...
Message
 
To
23/10/2000 11:04:03
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00427554
Message ID:
00433230
Views:
18
John:

Here is a very simple example of an update SP on SQL Server. The data class (VFP client) will generate the field values as parameters and pass it into the SP as a comma delimited string.


CREATE PROCEDURE spUpdateSomeTable(
@primarykey_sometable int,
@field1 varchar(30),
@field2 char(5),
@field3 datetime)
AS
update SomeTable set
field1 = @field1,
field2 = @field2,
field3 = @field3
where primarykey_sometable = @primarykey_sometable

Regards,
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform