<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>SQl databse connection in web service</title><link>https://www.infopathdev.com:443/forums/thread/39914.aspx</link><pubDate>Tue, 24 Mar 2009 15:27:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39914</guid><dc:creator>efleming21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=39914</wfw:commentRss><description>&lt;p&gt;I am very new to InfoPath development.&amp;nbsp; I have created a web service that uses an SQL database as the main data source connection.&amp;nbsp; I can post data to the database through an InfoPath form using a simple, &amp;#39;Insert&amp;#39; SQL statement. I am not publishing this to SharePoint at this moment so I am not concerned with that aspect of it.&amp;nbsp; What I need to do now is query, update and delete of the data.&amp;nbsp; I have searched many forums for SQL and C# but none are geared towards InfoPath.&amp;nbsp; I have seen code where I have to use the SQLDataReader to retrieve and store data.&amp;nbsp; The fields on the InfoPath form are the fields in the database table I am working with.&amp;nbsp; Is this the correct way to set up the fields on the InfoPath form?&amp;nbsp; Can I do a simple, &amp;#39;Select&amp;#39; statement to retrieve the data to the fields on the on the InfoPath form?&amp;nbsp; If so, can you post an example of how I would write this code for InfoPath?&amp;nbsp; Should I use different views of the form for add, delete, query and update?&amp;nbsp; So there is a read only form view that can be used for query and delete and an editable form for update?&lt;/p&gt;&lt;p&gt;Thanks in advance for all assistance in this endeavor. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>