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_cuit | varchar | 30 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_apocrifas
-- Add the parameters for the stored procedure here
@p_cuit varchar(30) = null
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 (@p_cuit is not null)
SELECT distinct apocrifas.cuit,
CONVERT(VARCHAR(10), apocrifas.detectado, 103) as detectado,
CONVERT(VARCHAR(10), apocrifas.publicado, 103) as publicado,
apocrifas.observaciones
FROM apocrifas
WHERE cuit = @p_cuit
AND visible = 1
ORDER BY detectado
END
GO
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_apocrifas
-- Add the parameters for the stored procedure here
@p_cuit varchar(30) = null
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 (@p_cuit is not null)
SELECT distinct apocrifas.cuit,
CONVERT(VARCHAR(10), apocrifas.detectado, 103) as detectado,
CONVERT(VARCHAR(10), apocrifas.publicado, 103) as publicado,
apocrifas.observaciones
FROM apocrifas
WHERE cuit = @p_cuit
AND visible = 1
ORDER BY detectado
END
GO
Depends On
1Used By
No items found