<?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: InfoPath 2007, Use the GetUserProfileByName SharePoint WebService username to feed another data connection SQL Server Query</title><link>https://www.infopathdev.com:443/forums/thread/76563.aspx</link><pubDate>Sun, 18 Mar 2012 04:39:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76563</guid><dc:creator>EmmaRoberts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=76563</wfw:commentRss><description>&lt;p&gt;can you show some code? I&amp;#39;ve done this and got similar issues, you have
to specify the credentials the web service is going to use.&lt;/p&gt;</description></item><item><title>Re: InfoPath 2007, Use the GetUserProfileByName SharePoint WebService username to feed another data connection SQL Server Query</title><link>https://www.infopathdev.com:443/forums/thread/72635.aspx</link><pubDate>Mon, 05 Dec 2011 18:14:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72635</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72635.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=72635</wfw:commentRss><description>&lt;p&gt;Hi - &lt;/p&gt;&lt;p&gt;Sorry to say - but this is not easy.&lt;/p&gt;&lt;p&gt;You will either need to write custom code for this (the general idea is outlined &lt;a href="http://support.microsoft.com/kb/826992"&gt;here&lt;/a&gt;)&amp;nbsp;and modify your SQL connection in code, use an add-on like &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt; which has a command you can use to add a dynamic where clause, or use web services (build your own, or buy one - we have a great web service suite &lt;a href="http://www.qdabra.com/en/products/DBXL.aspx"&gt;here&lt;/a&gt;.)&lt;/p&gt;</description></item><item><title>InfoPath 2007, Use the GetUserProfileByName SharePoint WebService username to feed another data connection SQL Server Query</title><link>https://www.infopathdev.com:443/forums/thread/72611.aspx</link><pubDate>Sat, 03 Dec 2011 04:34:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72611</guid><dc:creator>Randall Hodges</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72611.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=72611</wfw:commentRss><description>&lt;p&gt;This seems like such a simple thing, but I guess it isn&amp;#39;t since I&amp;#39;ve spent days tracking down &amp;quot;close, but no cigar&amp;quot; scenarios to what I need.&lt;/p&gt;&lt;p&gt;Need: &lt;/p&gt;&lt;p&gt;a) Use a Web Based InfoPath 2007 Form to enable a user to select only &amp;#39;their&amp;#39; own records from my database for review when form is load, (cannot load all 70,000 records, takes too long).&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;Have:&lt;/p&gt;&lt;p&gt;a) I have a working Form which is posting the Main Form data to a SharePoint Library on Submit&lt;/p&gt;&lt;p&gt;b) Working Data Connection SharePoint Web Service to grab the username from the GetUserProfileByName&lt;/p&gt;&lt;p&gt;c) Working Data Connection to SQL Server which has a good query (with hard coded WHERE filter to limit results during development)&lt;/p&gt;&lt;p&gt;How can I pass the UserName from the Web Service automatically at form open to my Data Connection&amp;nbsp; SQL Server while keeping this a Web Usable Form? (And remove hard coded value)&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Randy&lt;/p&gt;</description></item></channel></rss>