dbo.Proc_Inscripciones

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

2
Name Data Type Length Description
@accion char 1
@texto_inscripciones char 100

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- Create the stored procedure in the specified schema
CREATE OR ALTER PROCEDURE dbo.Proc_Inscripciones
    @accion CHAR(1),
    @texto_inscripciones CHAR(100) NULL
-- add more stored procedure parameters here
AS
BEGIN
    IF ( @accion = 'A' )
        BEGIN
            INSERT INTO inscripcionestxt(inscripciones) VALUES (@texto_inscripciones);
            RETURN;
        END
    --
    IF ( @accion = 'B' )
        BEGIN
            TRUNCATE TABLE inscripcionestxt;
        END
END
GO

Used By

No items found