Hi kevcoder;
One way to get the SQL connections string from the config file is as follows.
// Add a reference to the System.Configuration.dll to the project.
using System.Configuration;
// In the following statement replace NorthwindEntities with the name of the connectionSteing in the configuration file
var efConnStr = ConfigurationManager.ConnectionStrings["NorthwindEntities"].ConnectionString;
var sqlConnStr = new EntityConnectionStringBuilder(efConnStr).ProviderConnectionString;
// The variable sqlConnStr is the SQL connection string.
Fernando (MCSD)
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".