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 | 20 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
/*
EXEC obtener_nombres_anteriores '33501880049'
*/
CREATE OR ALTER PROCEDURE dbo.obtener_nombres_anteriores
@p_Cuit varchar(20)
AS
BEGIN
SET NOCOUNT ON;
select nombre1 , nombre2 , nombre3 , nombre4 , nombre5 from nombres_anteriores
inner join padrones on nombres_anteriores.cuit = padrones.identificacion
where cuit = @p_cuit
END
GO
GO
/*
EXEC obtener_nombres_anteriores '33501880049'
*/
CREATE OR ALTER PROCEDURE dbo.obtener_nombres_anteriores
@p_Cuit varchar(20)
AS
BEGIN
SET NOCOUNT ON;
select nombre1 , nombre2 , nombre3 , nombre4 , nombre5 from nombres_anteriores
inner join padrones on nombres_anteriores.cuit = padrones.identificacion
where cuit = @p_cuit
END
GO
Depends On
2Used By
No items found