<?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: Stored Procedure Code</title><link>https://www.infopathdev.com:443/forums/thread/20790.aspx</link><pubDate>Thu, 14 Jun 2007 16:40:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20790</guid><dc:creator>Tome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20790.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20790</wfw:commentRss><description>&lt;p&gt;The original form is not fully trusted and runs from the SharePoint site which exists within the intranet. The SharePoint site and the SQL DB are running on the same box.&lt;/p&gt;&lt;p&gt;What I am attempting to do is add some extended functionality to the form, and to do that I&amp;#39;m making the form fully trusted where the user would install it via msi to their pc. The code does not seem to work at that point.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Stored Procedure Code</title><link>https://www.infopathdev.com:443/forums/thread/20718.aspx</link><pubDate>Thu, 14 Jun 2007 07:06:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20718</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20718.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20718</wfw:commentRss><description>&lt;p&gt;Hi Tome,&lt;/p&gt;&lt;p&gt;Where are you running the form from? Is it published to a local machine or a website? Is the SQL database in the intranet domain?&lt;/p&gt;</description></item><item><title>Stored Procedure Code</title><link>https://www.infopathdev.com:443/forums/thread/20634.aspx</link><pubDate>Tue, 12 Jun 2007 15:58:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:20634</guid><dc:creator>Tome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/20634.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=20634</wfw:commentRss><description>&lt;p&gt;Any ideas why the code below only works when the form is NOT fully trusted?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;		var conn = new ActiveXObject(&amp;quot;ADODB.Connection&amp;quot;);&lt;br /&gt;conn.ConnectionString = XDocument.QueryAdapter.Connection;&lt;br /&gt;conn.ConnectionTimeout = XDocument.QueryAdapter.Timeout;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Open();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Execute(&amp;#39;execute &amp;quot;dbo&amp;quot;.&amp;quot;csp_GetSR4&amp;quot; &amp;#39; + conid + &amp;#39;, &amp;#39; + busid + &amp;#39; ,&amp;#39; + id);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn.Close();&lt;br /&gt;}&lt;br /&gt;		catch(ex)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.UI.Alert(&amp;quot;Error 02 - Encountered problem running SQL Stored Pocedure&amp;quot;);&lt;br /&gt;}
&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>