Refer to ConnectionStrings.com for various connection strings - link below for SQL;
[
ConnectionStrings.com]
A typical connection string would be;
Server=myServer\myInstance;DataBase=myDbName;User Id=myUser;Password=myPassword;
How you store, retrieve & edit the values is up to you.
Kind Regards