We use to run the custom store procedure on CRM 4.0 Server within plugin to do some custom coding like below ...
Does any one have any example/work around or suggestion on this??
string orgName =CrmContext.Current.OrganizationName;
OrganizationConfiguration config =OrganizationConfiguration.GetByOrganizationName(orgName);
DbConnectionStringBuilder connStr =newDbConnectionStringBuilder();
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??