dbo.DaelTest

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

3
Name Data Type Length Description
@pepe int 4
@pepe2 int 4
@pepe3 varchar 10

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- exec daeltest 10

CREATE OR ALTER PROCEDURE dbo.DaelTest 
 @pepe int,
 @pepe2 int = null,
 @pepe3 varchar(10) = null
AS
BEGIN
 SET NOCOUNT ON;

 declare @pepe4 int = 0
 declare @pepe5 int = 0

 select @pepe4=indicador from ln_indicadores where indicador = @pepe

 IF @pepe4 > 0
  BEGIN
   set @pepe4 = @pepe4*100
  END

  -- select top 5 * from clientes

  select @pepe4 as epepep


  --cursor

  select @pepe5=id_api_key from apikey where producto = 29 and activo = 1

  -- select id_api_key from apikey where producto = 299 and activo = 1

  if (@pepe4>0)
  begin
   -- insert into ----- select @@identity
   select @pepe5 = @@identity

  end


END
GO

Used By

No items found