<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: SQL Count Function</title><link>https://www.infopathdev.com:443/forums/thread/26451.aspx</link><pubDate>Wed, 13 Feb 2008 18:03:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26451</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26451</wfw:commentRss><description>&lt;p&gt;Hi Steve,&lt;/p&gt;
&lt;p&gt;You need to look at the XML that is stored in the 2DS.&amp;nbsp; If you type this SQL directly into the wizard that you use to create the connection to your database, then you will have a view of the XML returned, but if you cannot, then you need to get at it programmatically.&amp;nbsp; For web services this is accessed via the OutputLocation parameter, but I&amp;#39;m not sure how to do it with DB connections.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If all else fails, add this as a view to your database, and then just query it for all rows.&lt;/p&gt;</description></item><item><title>SQL Count Function</title><link>https://www.infopathdev.com:443/forums/thread/26391.aspx</link><pubDate>Tue, 12 Feb 2008 15:14:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26391</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26391</wfw:commentRss><description>&lt;p&gt;I am running the below&amp;nbsp;SQL Count function in&amp;nbsp;Script.&amp;nbsp;&amp;nbsp;How do I access the results?&amp;nbsp; I need to fix the statement in bold. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;select count(*)&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;quot;from &amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;quot;[LaborSummary] as [LaborSummary] &amp;quot;; &lt;/p&gt;
&lt;p&gt;&amp;quot;where ([LaborSummary].PROGRAM = &amp;#39;&amp;quot; + programPrefix + &amp;quot;&amp;#39;) and ([LaborSummary].CA1 = &amp;#39;&amp;quot; + ca1Prefix + &amp;quot;&amp;#39;) &amp;quot;; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;var countRecords = count(*);&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>