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_padron | int | 4 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <08 Ene 2018>
-- Description: <Obtener teléfono de Cuit>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_telefono
-- Add the parameters for the stored procedure here
@p_id_padron int
AS
BEGIN
SET NOCOUNT ON;
select telefono, tipo from telefonos where (id_padron = @p_id_padron) and (tipo != 'MOVIL' or tipo is null)
END
GO
GO
-- =============================================
-- Author: <Samuel Gonzalez>
-- Create date: <08 Ene 2018>
-- Description: <Obtener teléfono de Cuit>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_telefono
-- Add the parameters for the stored procedure here
@p_id_padron int
AS
BEGIN
SET NOCOUNT ON;
select telefono, tipo from telefonos where (id_padron = @p_id_padron) and (tipo != 'MOVIL' or tipo is null)
END
GO
Depends On
1Used By
No items found