dbo.listas_precios_

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@accion varchar 100

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.listas_precios_
@accion varchar(100)  
AS
BEGIN
 
 SET NOCOUNT ON;
 if @accion = 'LISTAS'
  SELECT  distinct lista 
    from listas_precios
   where visible = 1   
   order by lista
 if @accion = 'PRECIOS'
  SELECT *
    from listas_precios
   where visible = 1   
   order by lista
END

GO

Depends On

1

Used By

No items found