dbo.backend_delete_id_padron

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@id_padron int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
--MOdificado por Leonel Turchetto, cambiado de delete a update.

CREATE OR ALTER PROCEDURE dbo.backend_delete_id_padron
 -- Add the parameters for the stored procedure here
@id_padron int
 
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 -- interfering with SELECT statements.
 SET NOCOUNT ON;

    -- Insert statements for procedure here
 IF(@id_padron > 0) 
 BEGIN

 -- DELETE FROM padrones WHERE id_padron = @id_padron
 update padrones set habilitado = 0 where id_padron = @id_padron
 END

 
END

GO

Depends On

1

Used By

No items found