Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.RunITDev
AS
BEGIN
SET NOCOUNT ON;
DECLARE @ERRORNUMBER SMALLINT
SELECT Led_contratos.cliente as IDCliente,IIF(clientes.acceso_ci = 1,'A','V') as modalidad,
clientes.nombre_cliente
FROM clientes INNER JOIN
led_contratos ON clientes.cliente = led_contratos.cliente
WHERE clientes.estado_cliente = 'A' and
(clientes.acceso_led = 1 or clientes.acceso_ci = 1)
and getdate() between led_contratos.vigencia_desde
and led_contratos.vigencia_hasta
and led_contratos.cliente not in (9335603)
/*
select distinct contratista from led_contratistas where cliente=9335603
*/
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.RunITDev
AS
BEGIN
SET NOCOUNT ON;
DECLARE @ERRORNUMBER SMALLINT
SELECT Led_contratos.cliente as IDCliente,IIF(clientes.acceso_ci = 1,'A','V') as modalidad,
clientes.nombre_cliente
FROM clientes INNER JOIN
led_contratos ON clientes.cliente = led_contratos.cliente
WHERE clientes.estado_cliente = 'A' and
(clientes.acceso_led = 1 or clientes.acceso_ci = 1)
and getdate() between led_contratos.vigencia_desde
and led_contratos.vigencia_hasta
and led_contratos.cliente not in (9335603)
/*
select distinct contratista from led_contratistas where cliente=9335603
*/
END
GO
Depends On
2Used By
No items found