locked
Run Customer Store Procedure within Plugin in CRM 2013 RRS feed

  • Question

  • We use to run the custom store procedure on CRM 4.0 Server within plugin to do some custom coding like below ...

    string orgName = CrmContext.Current.OrganizationName;

                OrganizationConfiguration config = OrganizationConfiguration.GetByOrganizationName(orgName);

                DbConnectionStringBuilder connStr = new DbConnectionStringBuilder();

                connStr.ConnectionString = config.ConnectionString;

                connStr["Provider"] = null;

                this.ConnectionString = connStr.ConnectionString;

    Now, if I use try to use similar approach into CRM 2013, I get below error:-



    Does any one have any example/work around or suggestion on this??
    Tuesday, April 29, 2014 8:17 PM

Answers

All replies