Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using SQL Server Stored Procedures
Message
 
 
À
29/11/2005 10:22:11
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Database:
MS SQL Server
Divers
Thread ID:
01072825
Message ID:
01072829
Vues:
16
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform