Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
1| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_id_acc | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <21 Jul 2017>
-- Description: <agrega o modifica status de accionista (visible, no visible)>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.backend_status_accionista
-- Add the parameters for the stored procedure here
@p_id_acc int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
BEGIN
UPDATE accionistas SET
visible = 1 - visible,
modified = GETDATE()
WHERE (id_accionista = @p_id_acc)
END
SELECT @p_id_acc AS id_acc -- Verifico el Ășltimo modificado.
END
GO
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <21 Jul 2017>
-- Description: <agrega o modifica status de accionista (visible, no visible)>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.backend_status_accionista
-- Add the parameters for the stored procedure here
@p_id_acc int
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
BEGIN
UPDATE accionistas SET
visible = 1 - visible,
modified = GETDATE()
WHERE (id_accionista = @p_id_acc)
END
SELECT @p_id_acc AS id_acc -- Verifico el Ășltimo modificado.
END
GO
Depends On
1Used By
No items found