<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1297770272282728253.post581612668688240790..comments</id><updated>2009-12-01T18:42:59.011+01:00</updated><category term='Gestion del Rendimiento'/><category term='Libros'/><category term='Cubos OLAP'/><category term='DAX'/><category term='Performance'/><category term='ETL'/><category term='Download'/><category term='plantillas'/><category term='.Net'/><category term='SQL Server'/><category term='Formacion'/><category term='SQL Denali'/><category term='PowerPivot'/><category term='Modelado Dimensional'/><category term='Express with advanced services'/><category term='SQL Server 2012'/><category term='SQL Server FAQs'/><category term='Business Intelligence'/><category term='Report Builder'/><category term='Analysis Services'/><category term='Videos'/><category term='Admin'/><category term='VM'/><category term='ServicePack'/><category term='Master Busines Intelligence Madrid'/><category term='webcast'/><category term='GruposDeUsuarios'/><category term='Backup'/><category term='Tutoriales'/><category term='Cursos'/><category term='Manuales'/><category term='Networking'/><category term='SQL Azure'/><category term='Eventos'/><category term='BigData'/><category term='Humor'/><category term='SSIS'/><category term='Cluster'/><category term='Certificaciones'/><category term='Cloud'/><category term='CTP3'/><category term='Integration Services'/><category term='SolidQ'/><category term='Master Business Intelligence Online'/><category term='Instalar'/><category term='SQL Server BI'/><category term='Revistas'/><category term='OLAP'/><category term='SQL Server 2008'/><category term='BI General'/><category term='Office'/><category term='mdx'/><category term='Express'/><category term='Performance Management'/><category term='samples-ejemplos'/><category term='Curso SQL Server'/><category term='Datawarehouse'/><category term='Otros blogs'/><category term='Reporting Services'/><category term='NoSQL'/><category term='Dimensiones'/><category term='PASS'/><category term='MicrosoftKB'/><category term='Windows Server'/><category term='migracion'/><category term='Upgrade'/><category term='Empresa'/><category term='Labs'/><category term='DMV'/><category term='Performance Point'/><category term='BI'/><category term='SSAS'/><category term='Sharepoint'/><category term='SSRS'/><category term='Tools'/><category term='Crescent'/><category term='Seguridad'/><category term='SQL Server 2008 R2'/><category term='T-SQL'/><category term='Excel'/><title type='text'>Comments on Blog sobre SQL Server y Business Intelligence: Tratamiento de fechas y horas en SQL Server</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sqlserversi.com/feeds/581612668688240790/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default'/><link rel='alternate' type='text/html' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html'/><author><name>Salvador Ramos</name><uri>http://www.blogger.com/profile/17812564634015870048</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp0.blogger.com/_VQ-Yahr4FDM/R-VJRcgoGII/AAAAAAAAAAM/oZbgU6W3lpU/S220/sramos.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-7873502218519978689</id><published>2009-12-01T18:42:59.011+01:00</published><updated>2009-12-01T18:42:59.011+01:00</updated><title type='text'>Hola Cristian,

Entiendo que esta cuestión daría l...</title><content type='html'>Hola Cristian,&lt;br /&gt;&lt;br /&gt;Entiendo que esta cuestión daría lugar a un hilo con diversas cuestiones, respuestas, aclaraciones y demás, por lo que entiendo que este no es el sitio apropiado.&lt;br /&gt;&lt;br /&gt;No pienses por ello que intento eludir tu pregunta, te recomiendo que la hagas en los foros públicos, donde tanto yo como el resto de participantes intentaremos ayudarte, aquí te dejo el link:&lt;br /&gt;http://social.msdn.microsoft.com/Forums/es-ES/sqlserveres/threads&lt;br /&gt;&lt;br /&gt;Un saludo&lt;br /&gt;Salvador Ramos</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/7873502218519978689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/7873502218519978689'/><link rel='alternate' type='text/html' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html?showComment=1259689379011#c7873502218519978689' title=''/><author><name>Salvador Ramos</name><uri>http://www.blogger.com/profile/17812564634015870048</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp0.blogger.com/_VQ-Yahr4FDM/R-VJRcgoGII/AAAAAAAAAAM/oZbgU6W3lpU/S220/sramos.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-792605551'/></entry><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-8567957633340907241</id><published>2009-12-01T18:40:23.270+01:00</published><updated>2009-12-01T18:40:23.270+01:00</updated><title type='text'>Hola Cristian,

Tu pregunta, las aclaraciones a tu...</title><content type='html'>Hola Cristian,&lt;br /&gt;&lt;br /&gt;Tu pregunta, las aclaraciones a tus necesidades y las propuestas de soluciones, una vez conocidas con detalle tus necesidades, podrían dar lugar a un hilo largo. Creo que este no es el sitio apropiado.&lt;br /&gt;&lt;br /&gt;No pienses por ello que intento eludir tu pregunta, te invito a que la propongas en el foro público de SQL Server, donde tanto yo, como el resto de participantes intentaremos ayudarte. Puedes acceder a él desde el siguiente link:&lt;br /&gt;http://social.msdn.microsoft.com/Forums/es-ES/sqlserveres/threads&lt;br /&gt;&lt;br /&gt;Un saludo&lt;br /&gt;Salvador Ramos</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/8567957633340907241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/8567957633340907241'/><link rel='alternate' type='text/html' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html?showComment=1259689223270#c8567957633340907241' title=''/><author><name>Salvador Ramos</name><uri>http://www.blogger.com/profile/17812564634015870048</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp0.blogger.com/_VQ-Yahr4FDM/R-VJRcgoGII/AAAAAAAAAAM/oZbgU6W3lpU/S220/sramos.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-792605551'/></entry><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-2337414869331920360</id><published>2009-12-01T15:14:06.381+01:00</published><updated>2009-12-01T15:14:06.381+01:00</updated><title type='text'>Hola,
Tengo un gran problema...trabajo en una empr...</title><content type='html'>Hola,&lt;br /&gt;Tengo un gran problema...trabajo en una empresa de desarrollo internacional, donde las aplicaciones validan el Time Zone correspondientes. Los desarrolladores base, me dicen que debo almacenar todas las fechas y horas en formato de hora estandar y no usar el DST. He investigadado bastante y no logro conseguir el método.&lt;br /&gt;Puede alguien ayudarme con esto?&lt;br /&gt;&lt;br /&gt;Gracias de antemano.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/2337414869331920360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/2337414869331920360'/><link rel='alternate' type='text/html' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html?showComment=1259676846381#c2337414869331920360' title=''/><author><name>Christian</name><uri>http://www.blogger.com/profile/08730391630596878523</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-867690297'/></entry><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-2733402100406283560</id><published>2009-12-01T15:12:42.687+01:00</published><updated>2009-12-01T15:12:42.687+01:00</updated><title type='text'></title><content type='html'>Este comentario ha sido eliminado por el autor.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/2733402100406283560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/2733402100406283560'/><author><name>Christian</name><uri>http://www.blogger.com/profile/08730391630596878523</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-867690297'/></entry><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-1953572441798363079</id><published>2009-02-19T12:10:00.000+01:00</published><updated>2009-02-19T12:10:00.000+01:00</updated><title type='text'>Hola Ivich,&lt;br&gt;&lt;br&gt;Yo aplicaría lo explicado en el...</title><content type='html'>Hola Ivich,&lt;BR/&gt;&lt;BR/&gt;Yo aplicaría lo explicado en el post, agregando una multiplicación de días por las horas que tiene un día (x24), y de meses por días. Así multiplicando por la unidad inferior lo puedes llevar al formato que desees.&lt;BR/&gt;&lt;BR/&gt;Un saludo&lt;BR/&gt;Salvador Ramos</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/1953572441798363079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/1953572441798363079'/><link rel='alternate' type='text/html' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html?showComment=1235041800000#c1953572441798363079' title=''/><author><name>Salvador Ramos</name><uri>http://www.blogger.com/profile/17812564634015870048</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp0.blogger.com/_VQ-Yahr4FDM/R-VJRcgoGII/AAAAAAAAAAM/oZbgU6W3lpU/S220/sramos.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-792605551'/></entry><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-8309222983095233472</id><published>2009-02-19T12:04:00.000+01:00</published><updated>2009-02-19T12:04:00.000+01:00</updated><title type='text'></title><content type='html'>Este comentario ha sido eliminado por el autor.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/8309222983095233472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/8309222983095233472'/><author><name>Salvador Ramos</name><uri>http://www.blogger.com/profile/17812564634015870048</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://bp0.blogger.com/_VQ-Yahr4FDM/R-VJRcgoGII/AAAAAAAAAAM/oZbgU6W3lpU/S220/sramos.JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-792605551'/></entry><entry><id>tag:blogger.com,1999:blog-1297770272282728253.post-8733174658302448821</id><published>2009-02-19T11:51:00.000+01:00</published><updated>2009-02-19T11:51:00.000+01:00</updated><title type='text'>Me gustaría saber como resolverías la siguiente cu...</title><content type='html'>Me gustaría saber como resolverías la siguiente cuestión porque tengo dudas.&lt;BR/&gt;Necesito obtener la diferencia entre dos fechas pero sólo en horas, minutos y segundos. Mi solución ha sido esta:&lt;BR/&gt;CONVERT (VARCHAR(10), { fn MOD(DATEDIFF(HOUR, dbo.PARADAS.TIME_BEGIN_PARADA, dbo.PARADAS.TIME_END_PARADA), 24) }) + &amp;#39; : &amp;#39; + CONVERT (VARCHAR(10), { fn MOD(DATEDIFF(MINUTE, dbo.PARADAS.TIME_BEGIN_PARADA, dbo.PARADAS.TIME_END_PARADA), 60) }) + &amp;#39; : &amp;#39; + CONVERT (VARCHAR(10), { fn MOD(DATEDIFF(SECOND, dbo.PARADAS.TIME_BEGIN_PARADA, dbo.PARADAS.TIME_END_PARADA), 60) })&lt;BR/&gt;&lt;BR/&gt;Esto funciona para sqlserver 2005 pero necesitaría que en casos en los que sea &amp;lt; 10 el valor obtenido, pues que aparezca del siguiente modo. 09:03:04 y no como aparece ahora en algunas ocasiones con 9:3:4&lt;BR/&gt;&lt;BR/&gt;Para ello se me ha ocurrido esta solución: IF ((MOD(DATEDIFF(HOUR, dbo.PARADAS.TIME_BEGIN_PARADA, dbo.PARADAS.TIME_END_PARADA), 24)) &amp;lt; 10 )&lt;BR/&gt; {&amp;#39;0&amp;#39;+CONVERT(VARCHAR(10),{ fn MOD(DATEDIFF(HOUR, dbo.PARADAS.TIME_BEGIN_PARADA, dbo.PARADAS.TIME_END_PARADA), 24) })}&lt;BR/&gt;ELSE {CONVERT(VARCHAR(10),{ fn MOD(DATEDIFF(HOUR, dbo.PARADAS.TIME_BEGIN_PARADA, dbo.PARADAS.TIME_END_PARADA), 24) })} Pero no se porque motivo falla.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/8733174658302448821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1297770272282728253/581612668688240790/comments/default/8733174658302448821'/><link rel='alternate' type='text/html' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html?showComment=1235040660000#c8733174658302448821' title=''/><author><name>Ivich</name><uri>http://www.blogger.com/profile/16346637427293373462</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://4.bp.blogspot.com/_iCzoI91-J4o/SSVqsC7glPI/AAAAAAAAAEM/qeWQe299CLc/S220/Ivan.otero.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlserversi.com/2008/12/sql-server-fechas-horas.html' ref='tag:blogger.com,1999:blog-1297770272282728253.post-581612668688240790' source='http://www.blogger.com/feeds/1297770272282728253/posts/default/581612668688240790' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-937987443'/></entry></feed>
