<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lisandro Grassini &#187; vb.net</title>
	<atom:link href="http://www.lgrassini.com/category/vbnet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lgrassini.com</link>
	<description>random access memory</description>
	<lastBuildDate>Sat, 06 Mar 2010 18:19:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problemas con MySQL timestamp y VB.Net</title>
		<link>http://www.lgrassini.com/mysql/problemas-con-mysql-timestamp-y-vbnet</link>
		<comments>http://www.lgrassini.com/mysql/problemas-con-mysql-timestamp-y-vbnet#comments</comments>
		<pubDate>Fri, 06 Jan 2006 15:47:45 +0000</pubDate>
		<dc:creator>lichi</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[vb.net]]></category>
		<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://www.lgrassini.com/?p=23</guid>
		<description><![CDATA[Estuve a las vueltas a la hora de recuperar valores de un campo timestamp de una DB MySQL desde VB.Net.
En algunas ocasiones me devolvía este error: Unable to convert MySQL date/time value to System.DateTime.
El problema se da solo cuando nuestro registro no tiene valor para el campo timestamp. Es decir, su valor es: &#8220;0000-00-00&#8243;.
Para solucionar [...]]]></description>
			<content:encoded><![CDATA[<p>Estuve a las vueltas a la hora de recuperar valores de un campo timestamp de una DB MySQL desde VB.Net.</p>
<p>En algunas ocasiones me devolvía este error: <strong>Unable to convert MySQL date/time value to System.DateTime</strong>.</p>
<p>El problema se da solo cuando nuestro registro no tiene valor para el campo timestamp. Es decir, su valor es: &#8220;0000-00-00&#8243;.</p>
<p>Para solucionar este pequeño inconveniente podemos hacer alguna de las siguientes modificaciones:</p>
<p>1) Setear un valor timestamp válido, a todos los registros cuyo timestamp no representa una fecha real.</p>
<p>o &#8230;</p>
<p>2) Agregar: <em>Allow Zero Datetime=true</em> al ConnectionString :</p>
<pre class="brush: vb;">

Dim strConnString As String

strConnString = &quot;server=&quot; &amp;amp; Settings.Default.host &amp;amp; &quot;; &quot; &amp;amp; _
&quot;user id=&quot; &amp;amp; Settings.Default.user &amp;amp; &quot;; &quot; &amp;amp; _
&quot;password=&quot; &amp;amp; Settings.Default.password &amp;amp; &quot;; &quot; &amp;amp; _
&quot;database=&quot; &amp;amp; Settings.Default.db &amp;amp; &quot;;&quot; &amp;amp; _
&quot;Allow Zero Datetime=True;&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.lgrassini.com/mysql/problemas-con-mysql-timestamp-y-vbnet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
