In C# WinForms, where should I put my SQL connection string variable if I want to access it all over my application?
Right now I'm copy-pasting it wherever I'm using it.
//Sql connection string
SqlConnection con = new SqlConnection(@"Data Source=" + globalvariables.hosttxt + "," + globalvariables.porttxt + "\\SQLEXPRESS;Database=ha;Persist Security Info=false; UID='" + globalvariables.user + "' ; PWD='" + globalvariables.psw + "'");
SqlCommand command = con.CreateCommand();