dbo.Alta_cuit_apellido_nombre

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

3
Name Data Type Length Description
@numero varchar 20
@apellido varchar 200
@nombre varchar 200

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

CREATE OR ALTER PROCEDURE dbo.Alta_cuit_apellido_nombre  
 @numero       varchar(20),
 @apellido    varchar(200),
 @nombre     varchar(200)


AS
BEGIN
 SET NOCOUNT ON;

 --mejorar : en la primer busqueda a padron traer nombre y apellido para no preguntar por el select.
 /*if((select count(*) from padrones where identificacion = @numero  and isnull(apellidos,'') != ''  and isnull(nombres,'') != '') = 0)
  begin
  update padrones 
     set apellidos = @apellido, 
         nombres = @nombre
   where identificacion = @numero 
     and habilitado = 1
   end*/

  
END

GO

Depends On

No items found

Used By

No items found