Stored Procedure Code - InfoPath Dev
in

InfoPath Dev

Stored Procedure Code

Last post 06-14-2007 09:40 AM by Tome. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-12-2007 08:58 AM

    • Tome
    • Not Ranked
      Male
    • Joined on 01-18-2007
    • USA
    • Posts 16

    Stored Procedure Code

    Any ideas why the code below only works when the form is NOT fully trusted?

     

    var conn = new ActiveXObject("ADODB.Connection");
    conn.ConnectionString = XDocument.QueryAdapter.Connection;
    conn.ConnectionTimeout = XDocument.QueryAdapter.Timeout;
    try
    {
        conn.Open();
        conn.Execute('execute "dbo"."csp_GetSR4" ' + conid + ', ' + busid + ' ,' + id);
        conn.Close();
    }
    catch(ex)
    {
        XDocument.UI.Alert("Error 02 - Encountered problem running SQL Stored Pocedure");
    }
     


    George Ball
    VeoliaES
    [email protected]
  • 06-14-2007 12:06 AM In reply to

    Hi Tome,

    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?

    Patrick Halstead
    Project Manager at Qdabra
  • 06-14-2007 09:40 AM In reply to

    • Tome
    • Not Ranked
      Male
    • Joined on 01-18-2007
    • USA
    • Posts 16

    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.

    What I am attempting to do is add some extended functionality to the form, and to do that I'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.


    George Ball
    VeoliaES
    [email protected]
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.