 	DECLARE @UsarLinkedServer VARCHAR(300)
 	SELECT @UsarLinkedServer = Valor FROM dbo.Parametros WHERE Clave = ''UsarLinkedServer''
 	
-	IF(@UsarLinkedServer = ''true'')
+	IF(@UsarLinkedServer = 1)
 	BEGIN 	
 		SELECT cast([nombre] as nvarchar(max)) as nombre
 		  ,cast([horas_totales] as int) as horas_totales

	DECLARE @UsarLinkedServer VARCHAR(300)
	SELECT @UsarLinkedServer = Valor FROM dbo.Parametros WHERE Clave = ''UsarLinkedServer''
	
	IF(@UsarLinkedServer = ''true'')
	BEGIN 	
		SELECT cast([nombre] as nvarchar(max)) as nombre
		  ,cast([horas_totales] as int) as horas_totales

	DECLARE @UsarLinkedServer VARCHAR(300)
	SELECT @UsarLinkedServer = Valor FROM dbo.Parametros WHERE Clave = ''UsarLinkedServer''
	
	IF(@UsarLinkedServer = 1)
	BEGIN 	
		SELECT cast([nombre] as nvarchar(max)) as nombre
		  ,cast([horas_totales] as int) as horas_totales
