<?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: InfoPath Stored Procedure Execute Error -- Help!</title><link>https://www.infopathdev.com:443/forums/thread/3032.aspx</link><pubDate>Thu, 24 Aug 2006 19:15:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3032</guid><dc:creator>henscola</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3032</wfw:commentRss><description>In our shop, we use SQL through views for security.  Here is how we call SP's in our code...&lt;br /&gt;&lt;br /&gt;Dim Rs            'Main Recordset object&lt;br /&gt;Dim Rs2           'Dropdown Box Object&lt;br /&gt;Dim Cnn           'Connection Obj&lt;br /&gt;Dim strUId        'User NT Id&lt;br /&gt;Dim strCnn        'Conn str&lt;br /&gt;Dim strText&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Set lstCntPinTries = XDocument.DOM.selectSingleNode("//my:lstCntPinTries")&lt;br /&gt;Set txtSearch = XDocument.DOM.selectSingleNode("//my:txtSearch")&lt;br /&gt;    &lt;br /&gt;    TrimUserId()&lt;br /&gt;    TrimCnnStr()&lt;br /&gt;    OpenDbConnection()&lt;br /&gt;	InitializeForm()&lt;br /&gt;    DetermineRecNbrAndCount RecNbr2, RecCnt2&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Sub InitializeForm()&lt;br /&gt;	GetRecordSet()&lt;br /&gt;	txtCreate_Record = "N"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Sub InitializeForm()&lt;br /&gt;	GetRecordSet()&lt;br /&gt;	txtCreate_Record = "N"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	If Not Rs.EOF Then&lt;br /&gt;		PopulateFields()&lt;br /&gt;	    'Set Navigation Button status&lt;br /&gt;		DisplayRecNbrAndRecCnt()&lt;br /&gt;    End If&lt;br /&gt;	&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Sub GetRecordSet()&lt;br /&gt;	&lt;br /&gt;    Dim Sp&lt;br /&gt;	Dim cmd &lt;br /&gt;	Dim j &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    Set cmd = CreateObject("ADODB.Command")&lt;br /&gt;   &lt;br /&gt;    cmd.ActiveConnection = Cnn&lt;br /&gt;    cmd.CommandText = "usp_On_the_DOT_AwardList"&lt;br /&gt;    cmd.Prepared = True&lt;br /&gt;    &lt;br /&gt;    Set Rs = cmd.Execute(j,strUId,adCmdStoredProc)&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;I hope this helps.</description></item><item><title>Re: InfoPath Stored Procedure Execute Error -- Help!</title><link>https://www.infopathdev.com:443/forums/thread/3031.aspx</link><pubDate>Wed, 23 Aug 2006 12:02:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3031</guid><dc:creator>sam1996</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3031.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3031</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;    That worked....Thanks so much...&lt;br /&gt;&lt;br /&gt;SAM</description></item><item><title>Re: InfoPath Stored Procedure Execute Error -- Help!</title><link>https://www.infopathdev.com:443/forums/thread/3030.aspx</link><pubDate>Tue, 22 Aug 2006 19:04:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3030</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3030.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3030</wfw:commentRss><description>Hi SAM,&lt;br /&gt;If you are trying to connect to a secondary datasource why are you setting command value to XDocument.QueryAdapter? &lt;br /&gt;You have to set it to XDocument.QueryAdapters["ConnectionName"].Command = "query";&lt;br /&gt;and do a query on XDocument.QueryAdapters["ConnectionName"].Query();&lt;br /&gt;</description></item><item><title>Re: InfoPath Stored Procedure Execute Error -- Help!</title><link>https://www.infopathdev.com:443/forums/thread/3029.aspx</link><pubDate>Tue, 22 Aug 2006 11:15:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3029</guid><dc:creator>sam1996</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3029.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3029</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath Stored Procedure Execute Error -- Help!</title><link>https://www.infopathdev.com:443/forums/thread/3028.aspx</link><pubDate>Mon, 21 Aug 2006 18:52:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3028</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3028</wfw:commentRss><description>Hi,&lt;br /&gt;Error message clearly says that &lt;br /&gt;"This discrepancy might be caused by the data source returning multiple rows when InfoPath expects only one." This means that the schema of the InfoPath form and the data that is returned by the database is different.&lt;br /&gt;&lt;br /&gt;You can try out the same thing using a secondary  data connection, that will work. Now check the difference between your main schema and the new schema that is returned by the DB.</description></item><item><title>InfoPath Stored Procedure Execute Error -- Help!</title><link>https://www.infopathdev.com:443/forums/thread/1500.aspx</link><pubDate>Fri, 18 Aug 2006 11:21:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1500</guid><dc:creator>sam1996</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1500</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>