0

I am trying to change the default value of my connectionString in my application. How do I change it such that it redirects to a database in my system?

Here is my code:

private static string connectionString = ConfigurationManager.ConnectionStrings["sqlcn"].ConnectionString.ToString();

Thank you!

1 Answers1

0

In you App.config file (or Web.config if it's a web application), there is an element <connectionStrings>. You can edit the values listed there to change your connection strings.

You can see the MSDN page on this topic for more information.

yoozer8
  • 7,361
  • 7
  • 58
  • 93