<?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: dynamic connection to lookup tables</title><link>https://www.infopathdev.com:443/forums/thread/17036.aspx</link><pubDate>Wed, 28 Sep 2005 15:35:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17036</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=17036</wfw:commentRss><description>Hi erezl, &lt;br /&gt;You can change your query string dynamically to get values from different tables. &lt;br /&gt;I dint try but check if you can change the connection string.&lt;br /&gt;ADOAdapterObject oAdapter =(ADOAdapterObject) thisXDocument.DataAdapters["ConnectioName"];&lt;br /&gt;oAdapter.Command = string.Format(""Select * from xyz");&lt;br /&gt;oAdapter.Connection = "Connection String";&lt;br /&gt;oAdapter.Query();&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>dynamic connection to lookup tables</title><link>https://www.infopathdev.com:443/forums/thread/16741.aspx</link><pubDate>Thu, 22 Sep 2005 08:38:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16741</guid><dc:creator>erezl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16741.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16741</wfw:commentRss><description>Hi,&lt;br /&gt;Can we declare secondery data connections dynamically.&lt;br /&gt;I have a lot of lookup tables from database.&lt;br /&gt;I have a DB instance in a station in development environment, and a different instance in a station in the customer environment.&lt;br /&gt;Can I get the relevant station (data source) based on configfile, or can I change a single point of code to effect the connection definition? Can i use odbc connection, instead. Although i saw that the inifopath takes all the defintions including data source and station.&lt;br /&gt;Each time in the customer i have to change all the secendary cinnections.</description></item></channel></rss>