<?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: get username for sql data connection</title><link>https://www.infopathdev.com:443/forums/thread/82029.aspx</link><pubDate>Mon, 27 Aug 2012 22:37:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82029</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82029</wfw:commentRss><description>&lt;p&gt;We don&amp;#39;t have dynamic SQL queries out of the box with InfoPath, unfortunately. Your options are writing code, building or buying a web service (DBXL, for example) or qRules also has commands for this.&lt;/p&gt;</description></item><item><title>get username for sql data connection</title><link>https://www.infopathdev.com:443/forums/thread/81935.aspx</link><pubDate>Fri, 24 Aug 2012 09:26:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81935</guid><dc:creator>endear</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81935.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=81935</wfw:commentRss><description>&lt;p&gt;I have a form that is connected with a database. In my DB I have records that contains&amp;nbsp;the username of the user.
 
&lt;/p&gt;&lt;p&gt;On load, the form has to load the information from the DB. That is working fine, now InfoPath load all the records. &lt;/p&gt;&lt;p&gt;But I only need the records of the current user.
 
&lt;br /&gt;How is it possible to do a query where I say that I only need the records where username = &lt;strong&gt;currentUser&lt;/strong&gt;? &lt;br /&gt;In InfoPath you can use username(), but how do I get it in my sql?
&lt;/p&gt;&lt;p&gt;With in my sql, i mean: under Data &amp;gt; Data connections. modify the connection and click on &amp;quot;edit SQL&amp;quot;&lt;/p&gt;</description></item></channel></rss>