![]() |
Problemas Con Convert !!! Ayuda Porfavor :-)HOLA A TODOS ESPERO QUE ALGUIEN PUEDA AYUDAR A RESOLVER UNA DUDA CON CONVERT; POR QUE ME SALE UN ERROR Y LA VERDAD NO TENGO IDEA DE COMO RESOLVERLO POR QUE NO HABÍA MANEJADO EL CONVERT.:-) BUENO EL ERROR ES ESTE : -------------------------------------------------------------------------------------->> (0 filas afectadas) (0 filas afectadas) (1 filas afectadas) Servidor: mensaje 242, nivel 16, estado 3, procedimiento sp_ResumenServiciosProgramados_mod, línea 176 La conversión del tipo de datos char a datetime produjo un valor datetime fuera de intervalo. (0 filas afectadas) ------------------------------------------------------------------------------------>> Y las lineas de codigo donde me marca el error son estas : :neurotico BEGIN Select count(*) as TotalProgramados,IDServicio,Servicio,IDSubservicio ,Subservicio, convert(varchar(2),datepart(mm,Fecha))+ '/'+ convert(varchar(2),datepart(dd,Fecha))+ '/'+ convert(varchar(4),datepart(yyyy,Fecha))Fecha, IDSoporteServicio from TempResumenProgramados where UsuarioActivo=@UsuarioActivo and Fecha >= convert(varchar(2),datepart(mm,@FechaHoy))+ '/'+ convert(varchar(2),datepart(dd,@FechaHoy))+ '/'+ convert(varchar(4),datepart(yyyy,@FechaHoy)) group by IDServicio,Servicio,IDSubservicio,SubServicio,Fech a,IDSoporteServicio order by IDServicio,Servicio,IDSubservicio,SubServicio,Fech a,IDSoporteServicio END ------------------------------------------------------------------------------------------>> Espero que alguien me pueda ayudar de antemano GRACIAS !!! :-) ALEGNA *** |
Re: Problemas Con Convert !!! Ayuda Porfavor Código: DECLARE @FechaHoy SMALLDATETIME |
| La zona horaria es GMT -6. Ahora son las 09:21. |
Desarrollado por vBulletin® Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.