<?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: Save data from infopath to SQL database</title><link>https://www.infopathdev.com:443/forums/thread/17040.aspx</link><pubDate>Sun, 20 Nov 2005 12:32:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17040</guid><dc:creator>whapakk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17040</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;br /&gt;2. When you are submitting the form, change command of your dataconnection to insert values into DB. Now query the dataconnection. &lt;br /&gt;3. Other things you can try is to write a stored proc to insert values to DB and set this as command to the secondary dataconnection and query the dataconnection.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Sorry but can you explain a bit more about the 'command' of the dataconnection. I tried something but I don't know if it's the same.&lt;br /&gt;I added a new dataconnection and on the wizard, I trashed the generated SQL statement and wrote my own. But all it can do is retrieve custom data. For SQL statements with parameters I don't know how I'll be able to pass them when I query the dataconnection.&lt;br /&gt;</description></item><item><title>Re: Save data from infopath to SQL database</title><link>https://www.infopathdev.com:443/forums/thread/17039.aspx</link><pubDate>Fri, 18 Nov 2005 08:49:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17039</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17039.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17039</wfw:commentRss><description>Hi, &lt;br /&gt;There one thing that you can try here,&lt;br /&gt;1. Take regular secondary dataconnection, which gets the data.&lt;br /&gt;2. When you are submitting the form, change command of your dataconnection to insert values into DB. Now query the dataconnection. &lt;br /&gt;See if this works!&lt;br /&gt;3. Other things you can try is to write a stored proc to insert values to DB and set this as command to the secondary dataconnection and query the dataconnection.&lt;br /&gt;&lt;br /&gt;Try these out and let me know if it works?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Save data from infopath to SQL database</title><link>https://www.infopathdev.com:443/forums/thread/17038.aspx</link><pubDate>Fri, 18 Nov 2005 05:30:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17038</guid><dc:creator>whapakk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17038.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17038</wfw:commentRss><description>Hi Agni,&lt;br /&gt;I have already deployed my form. It takes the filled out form and saves the document to a sharepoint site, simple. I didnt use dataconnections except for the secondary sql datasources for dropdownlists. Now they added a new requirement that it has to be able to save the form data to SQL. Is there any easy way of doing this without changing the primary datasource because form has lots of rules that will need to be rewritten. I can use the 3rd option in your list but I don't think I can make my form fully trusted. Any ideas? Thanks.&lt;br /&gt;&lt;br /&gt;btw, I used managed C#&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;Practice makes perfect, but then, nobody's perfect. So, why practice?&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Save data from infopath to SQL database</title><link>https://www.infopathdev.com:443/forums/thread/17037.aspx</link><pubDate>Wed, 28 Sep 2005 13:58:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17037</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17037</wfw:commentRss><description>Hi,&lt;br /&gt;There are three option here,&lt;br /&gt;1. Take primary dataconnection to the database table. With this connection you can insert rows into the table, modify rows in the table and delete rows in the table.&lt;br /&gt;&lt;br /&gt;2. Write a Webservice method which takes your data as input and saves back to database.&lt;br /&gt;&lt;br /&gt;3. Write .net code to connect to Database using SQLConnection and save values to DB. But this connection needs full trust to your form.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Save data from infopath to SQL database</title><link>https://www.infopathdev.com:443/forums/thread/16742.aspx</link><pubDate>Mon, 26 Sep 2005 18:48:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16742</guid><dc:creator>lfadoidao</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16742</wfw:commentRss><description>How I make to send the inserted data in the Form for my connection of data base (SQL)?</description></item></channel></rss>