<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Conversion failed when converting datetime from character string.</title><link>https://www.infopathdev.com:443/forums/thread/60840.aspx</link><pubDate>Fri, 29 Oct 2010 02:53:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60840</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=60840</wfw:commentRss><description>&lt;p&gt;You can display the field in a textbox to see what its actual value is.&amp;nbsp; I&amp;#39;m fairly certain that InfoPath is not reformatting it.&amp;nbsp; If you &lt;em&gt;do&lt;/em&gt; need to reformat the field&amp;#39;s content, you can do so with a combination of concat() and substring() functions.&lt;/p&gt;</description></item><item><title>Re: Conversion failed when converting datetime from character string.</title><link>https://www.infopathdev.com:443/forums/thread/60811.aspx</link><pubDate>Thu, 28 Oct 2010 18:16:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60811</guid><dc:creator>HeartOnSlv</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60811.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=60811</wfw:commentRss><description>Well that seem to clear up the error, but its not grabbing the row of data for any data i select from the drop down. I have a feeling is the way it formats the data to (10/26/2010 etc...) so why the number of characters maybe be ok now, it doesn&amp;#39;t seem to be converting it to the same format on the next query. Is there away to access these combo boxes from the code editor maybe... that way i can write some toString functions or something.</description></item><item><title>Re: Conversion failed when converting datetime from character string.</title><link>https://www.infopathdev.com:443/forums/thread/60803.aspx</link><pubDate>Thu, 28 Oct 2010 15:25:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60803</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=60803</wfw:commentRss><description>&lt;p&gt;substring(&lt;strong&gt;&lt;u&gt;date&lt;/u&gt;&lt;/strong&gt;, 1, 19) where &lt;strong&gt;&lt;u&gt;date&lt;/u&gt;&lt;/strong&gt; is your date field, should provide you with the value without the fractional seconds.&amp;nbsp; Just use that in a rule.&lt;/p&gt;</description></item><item><title>Re: Conversion failed when converting datetime from character string.</title><link>https://www.infopathdev.com:443/forums/thread/60801.aspx</link><pubDate>Thu, 28 Oct 2010 14:03:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60801</guid><dc:creator>HeartOnSlv</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=60801</wfw:commentRss><description>The process would still work. Any idea how to lop off the fractional seconds.
&lt;p&gt;&lt;/p&gt;
Thanks for the reply</description></item><item><title>Re: Conversion failed when converting datetime from character string.</title><link>https://www.infopathdev.com:443/forums/thread/60797.aspx</link><pubDate>Thu, 28 Oct 2010 13:38:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60797</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=60797</wfw:commentRss><description>&lt;p&gt;I think SQL server doesn&amp;#39;t like the .160000000 part at the end.&amp;nbsp; Would your process still work if you lopped off the fractional seconds part at the end before doing your query?&amp;nbsp; It seems like SQL Server will probably accept up to 3 digits of fractional seconds.&lt;/p&gt;</description></item><item><title>Conversion failed when converting datetime from character string.</title><link>https://www.infopathdev.com:443/forums/thread/60795.aspx</link><pubDate>Thu, 28 Oct 2010 13:17:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60795</guid><dc:creator>HeartOnSlv</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60795.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=60795</wfw:commentRss><description>[0x80040E07][Microsoft OLE DB Provider for SQL Server] Conversion failed when converting datetime from character string.
&lt;p&gt;&lt;/p&gt;
Hi,
Can someone help me please with the above problem. I&amp;#39;m new to InfoPath and i&amp;#39;m trying to make a form that goes into out inventory database (MS-SQL 2005). I have every thing working except this query. The Idea behind this form is that a User pics the customers name and then a query updates the &amp;quot;Transaction Date&amp;quot; DropDown box. This works! However, once i select a date to query for the Assets checked out on that date i receive the above error. 
&lt;p&gt;&lt;/p&gt;
The Drop down shows the datetime in this format &amp;quot;2010-10-20T15:31:31.160000000&amp;quot;.... I have a feeling the once selected the dropdown box changes the format.
&lt;p&gt;&lt;/p&gt;
Any help would be greatly appreciated!</description></item></channel></rss>