Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SQL Server Stored Procedures
Message
 
 
To
29/11/2005 10:22:11
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01072825
Message ID:
01072829
Views:
14
>Can anybody explain how I can use a SQL Server stored procedure to insert a record into a SQL table? I am looking at the help file, and it kind of explains it, but it doesn't show how to pass in parameters.
>
create procedure EventList_Insert
(
    @Code varchar (16),
    @ShortDesc varchar (20),
    @Description varchar (50),
    @IsInternal int,
    @IsTicketLastUpdated int
) 
AS

SET NOCOUNT ON

INSERT INTO EventList 
(
    Code,
    ShortDesc,
    Description,
    IsInternal,
    IsTicketLastUpdated
)
VALUES
(
    @Code,
    @ShortDesc,
    @Description,
    @IsInternal,
    @IsTicketLastUpdated
)
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform