SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'WGP_Terminal_GetCombo') )
DROP PROCEDURE WGP_Terminal_GetCombo
GO

CREATE PROCEDURE WGP_Terminal_GetCombo --Carga la informacion a el combobox
AS
BEGIN
	Select id_terminal, LTRIM(RTRIM(nombre))nombre from terminales where activa=1
	ORDER BY id_terminal

END
GO