Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
Parameters
2| Name | Data Type | Length | Description |
|---|---|---|---|
| @p_identificador | varchar | 30 | |
| @p_numero | 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.Imperium_buscar_padron
-- Add the parameters for the stored procedure here
@p_identificador varchar(30) null,
@p_numero 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_identificador is not null and @p_numero is not null)
select padrones.*, identificadores.abreviatura, identificadores.nombre_identificador, identificadores.country_code, country.country_name
from padrones inner join identificadores on padrones.identificador = identificadores.identificador
inner join country on identificadores.country_code = country.country_code
where padrones.identificador = @p_identificador
and padrones.numero = @p_numero
END
GO
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.Imperium_buscar_padron
-- Add the parameters for the stored procedure here
@p_identificador varchar(30) null,
@p_numero 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_identificador is not null and @p_numero is not null)
select padrones.*, identificadores.abreviatura, identificadores.nombre_identificador, identificadores.country_code, country.country_name
from padrones inner join identificadores on padrones.identificador = identificadores.identificador
inner join country on identificadores.country_code = country.country_code
where padrones.identificador = @p_identificador
and padrones.numero = @p_numero
END
GO
Depends On
3Used By
No items found