dbo.Imperium_Reporte_Vehiculos

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@id_cliente int 4

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.Imperium_Reporte_Vehiculos
 -- parameters for the stored procedure
 @id_cliente int
AS
BEGIN
 -- SET NOCOUNT ON added to prevent extra result sets from
 SET NOCOUNT ON;


 select distinct padrones.identificacion,padrones.nombre_persona,led_vehiculos.dominio,led_vehiculos.nombre_vehiculo,led_vehiculos.descripcion_vehiculo,led_vehiculos.tara,led_vehiculos.tarimas 
 from led_vehiculos inner join led_contratistas on led_vehiculos.contratista=led_contratistas.contratista_1 
 inner join padrones on led_contratistas.id_padron=padrones.id_padron
 where led_contratistas.cliente = @id_cliente and led_contratistas.estado_contratista='A' 
 --and (tara is null or tarimas is null)
 --and led_contratistas.contratista=led_contratistas.contratista_1
 order by padrones.nombre_persona

  
END

GO

Used By

No items found