<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: database connection problem in VB.net</title><link>https://www.infopathdev.com:443/forums/thread/16967.aspx</link><pubDate>Wed, 13 Jul 2005 06:52:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16967</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16967</wfw:commentRss><description>Hi Ger Eielts, Welcome to the Forum!&lt;br /&gt;Did you give Full trust to your form? When you are connecting to a DB through code you need to give Full trust to your InfoPath project, that is the reason that the exception is raised in the line where you are taking a DB connection.&lt;br /&gt;There are many posts about giving full trust to your InfoPath project.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>database connection problem in VB.net</title><link>https://www.infopathdev.com:443/forums/thread/16722.aspx</link><pubDate>Tue, 12 Jul 2005 23:16:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16722</guid><dc:creator>GerEielts</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=16722</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;When I open an infopathproject in Visual Studio and want to add some code to a button on a InfoPath-form, like this:&lt;br /&gt;&lt;br /&gt;Public Sub CTRL11_5_OnClick(ByVal e As DocActionEvent)&lt;br /&gt;            Dim ConnectionString As String = &lt;br /&gt;"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\Ontwikkel\G\Ger\Nummers.mdb;"&lt;br /&gt;            Dim Conn1 As OleDbConnection = New &lt;br /&gt;OleDbConnection(ConnectionString)&lt;br /&gt;            Dim Comm1 As OleDbCommand = New OleDbCommand("UPDATE &lt;br /&gt;Opdrachtnummers SET Opdrachtnummer = Opdrachtnummer + 1")&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;I got the following error:&lt;br /&gt;&lt;br /&gt;System.Security.SecurityException&lt;br /&gt;Request failed.&lt;br /&gt;   at InfoPathProject4.InfoPathProject4.CTRL11_5_OnClick(DocActionEvent e)&lt;br /&gt;   at &lt;br /&gt;Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;br /&gt;This happens on the dimensions of Conn1 and/or Comm1. What can be wrong ? &lt;br /&gt;Help is appreciated.&lt;br /&gt;&lt;br /&gt;Regards, Ger.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Carpe diem</description></item></channel></rss>