<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Data type when connecting to SQL 2005 Database</title><link>https://www.infopathdev.com:443/forums/thread/3794.aspx</link><pubDate>Fri, 05 Jan 2007 05:40:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3794</guid><dc:creator>jthrasher</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3794.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3794</wfw:commentRss><description>The error is displayed when modifying the properties on the check box.&lt;br /&gt;&lt;br /&gt;When I add the check boxes to the form and link them to a field in the database that is already set to a binary, the data type is automatically sent to simpleType and the default values are blank.  If I leave them blank, then the database show null for any submitted data whether checked or unchecked.  If I try to modify the properties then it requires me to fill in the default values, which it won't let me enter 1 or 0.</description></item><item><title>Re: Data type when connecting to SQL 2005 Database</title><link>https://www.infopathdev.com:443/forums/thread/3793.aspx</link><pubDate>Fri, 05 Jan 2007 04:43:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3793</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3793</wfw:commentRss><description>Hi Jason and welcome to the forums!&lt;br /&gt;&lt;br /&gt;Are you seeing this error from the InfoPath Designer or when you submit? In my experience you don't need to change the checkboxes to 0/1 as long as the SQL data type is 'bit'.  If you insert the value of 'true' into a bit field the database should convert that to the 0/1 that you are looking for.  Have you tried just leaving everything at default?&lt;br /&gt;&lt;br /&gt;Also, what database server are you submitting to?</description></item><item><title>Data type when connecting to SQL 2005 Database</title><link>https://www.infopathdev.com:443/forums/thread/1778.aspx</link><pubDate>Fri, 05 Jan 2007 02:33:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1778</guid><dc:creator>jthrasher</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1778.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1778</wfw:commentRss><description>I'm having a bit of trouble submitting data to a SQL database and am hoping you might be able to help.  I have created a SQL database that has an assortment of binary columns which I want to relate to check boxes on the form.  I would like a check to insert a "1" into the database, and an uncheck to insert a "0".  Now, when I create my form connected to the SQL database it changes the data type to "simpleType" and when I set "value when cleared" to "0" and "value when checked" to "1" i get the error "the default value must match the data type.  Change the value or the type."  Since this field came from a database, it doesn't let me change the type so I'm confused.&lt;br /&gt;&lt;br /&gt;Jason</description></item></channel></rss>