How to get conection string of database

how to get conection string of database and put it to conig file