<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: SQL Query</title><link>https://www.infopathdev.com:443/forums/thread/15068.aspx</link><pubDate>Tue, 06 Feb 2007 21:52:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15068</guid><dc:creator>rpowell4600</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15068</wfw:commentRss><description>Thanks I will give that a try.</description></item><item><title>Re: SQL Query</title><link>https://www.infopathdev.com:443/forums/thread/15067.aspx</link><pubDate>Tue, 06 Feb 2007 13:29:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15067</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15067</wfw:commentRss><description>Hi rpowell4600,&lt;br /&gt;&lt;br /&gt;not 100% if that is what you are looking for but i usually use this little trick.&lt;br /&gt;&lt;br /&gt;Put an Expression Box to your form, click the fx button, select Insert Field or Group, select your secondary datasource and select the field or group you want to know the xpath for. then in the insert formula widnow check the box "edit xpaht (advanced)". There you go.&lt;br /&gt;&lt;br /&gt;Hope it helps</description></item><item><title>SQL Query</title><link>https://www.infopathdev.com:443/forums/thread/13047.aspx</link><pubDate>Fri, 02 Feb 2007 22:51:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13047</guid><dc:creator>rpowell4600</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13047</wfw:commentRss><description>I am trying to perform a query against a SQL database. I have established a good data connection to the table.  I want to query the table for "EmplID", then return the First, Last &amp; M.I. back to the appropriate textbox fields. But when I run the query I get the following msg &lt;b&gt;"Object Required"&lt;/b&gt;. I know this is telling me I do not have the table name in my namespace path. If I wanted to verify my namespace, how can I find the fully qualified namespace path and will my code return the desired information.&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;var currentElementID = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:ADVHR-EMPL/@EmplID").text;&lt;br /&gt;myDataAdapter = XDocument.DataAdapters("ADVHR-EMPL");&lt;br /&gt;myDataAdapter.Command = "select EMPL_LAST_NM, EMPL_FIRST_NM from ADVHR-EMPL WHERE EMPLOYEE_ID = '" + currentElementID + "'";&lt;br /&gt;myDataAdapter.Query();&lt;br /&gt;}&lt;br /&gt;</description></item></channel></rss>