<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: submit data to 2 SQL tables</title><link>https://www.infopathdev.com:443/forums/thread/82622.aspx</link><pubDate>Thu, 13 Sep 2012 15:34:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82622</guid><dc:creator>paolo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82622</wfw:commentRss><description>&lt;p&gt;Well, I&amp;#39;ll answer my own post since I found a solution...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Assume you have SQL Tables named &amp;quot;Apple&amp;quot; and &amp;quot;Banana&amp;quot;.&lt;/p&gt;&lt;p&gt;Make sure Apple has a primary key assigned (say in column Alice). &lt;/p&gt;&lt;p&gt;This should be the usual way an SQL primary key needs to be ( for instance not allow blanks, be unique etc.)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Make sure Banana has a column that can contain data of the type of the primary key (say in Column Bob).&lt;/p&gt;&lt;p&gt;In Infopath create a main data connection to Apple.&lt;/p&gt;&lt;p&gt;From the data connection window, select &amp;quot;add table&amp;quot;.&lt;/p&gt;&lt;p&gt;That will spawn a window with a list of table relationship.&lt;/p&gt;&lt;p&gt;There, delete all the relationships, and add a relationship Alice=Bob. Done! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;You can then ignore the column Bob, it just need to be present for Infopath to not get confused. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Using this strategy I was successful in simultaneous submission of the data to Apple and Banana.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have no idea why we need to use such a circuitous route and couldn&amp;#39;t just add another connection&lt;/p&gt;&lt;p&gt;to submit data to directly, but in the end I am happy I can submit to 2 different SQL tables&lt;/p&gt;&lt;p&gt;without need of additional code with web-services and stuff.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ciao,&lt;/p&gt;&lt;p&gt;Paolo &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: submit data to 2 SQL tables</title><link>https://www.infopathdev.com:443/forums/thread/82030.aspx</link><pubDate>Mon, 27 Aug 2012 22:37:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82030</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82030.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82030</wfw:commentRss><description>When you create the main data connection. There is a dialog for adding additional child tables. If you want to submit to two parent tables, you may need to create a Web service. Qdabra provides a free trial of our popular DBXL Web service which can support this scenario if it&amp;#39;s the same database. Check out Qdabra.com and click on Web Services for more details.</description></item><item><title>submit data to 2 SQL tables</title><link>https://www.infopathdev.com:443/forums/thread/81941.aspx</link><pubDate>Fri, 24 Aug 2012 12:03:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81941</guid><dc:creator>paolo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81941.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81941</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hallo,&lt;/p&gt;&lt;p&gt;my Infopath 2010 form submit data to an SQL server (via a standard&amp;nbsp; windows data connection).&lt;/p&gt;&lt;p&gt;I can create a main data connection to one table for data query and submit, that works just fine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;However, Infopath doesn&amp;#39;t allow me to submit to a second SQL data table in the same database&lt;/p&gt;&lt;p&gt;(or in another database for that matter). It seems the workaround would be to use web services&lt;/p&gt;&lt;p&gt;interface, but I wondered if there is an alternative options using the ado connection objects from&lt;/p&gt;&lt;p&gt;.NET available by way of the VB code attached to the form.&lt;/p&gt;&lt;p&gt;Did anybody try that? What were the results? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ciao,&lt;/p&gt;&lt;p&gt;Paolo &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>