---
title: "What is connection strings?"  
description: "What is connection strings?"  
author: "Anonymous User"  
published: 2020-01-20  
updated: 2020-01-20  
canonical: https://www.mindstick.com/forum/155710/what-is-connection-strings  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# What is connection strings?

[Please explain](https://www.mindstick.com/forum/344/hi-rohith-i-am-new-for-mvc-please-explain-how-to-set-implicitly-isauthenticated-true) me what is [connection](https://www.mindstick.com/articles/13012/what-makes-ethernet-connection-better-than-wifi) [strings](https://www.mindstick.com/forum/161912/explain-the-python-strings) with suitable example.

## Replies

### Reply by Nishi Tiwari

## ConnectionStrings

The most common section of web.config file the connectionStrings sections allows us to store multiple connection strings that are used in the application. The **[connectionStrings tag](https://www.mindstick.com/forum/155706/what-is-web-config-file)** consists of child element with attributes name and connectionstring which is used to identify the connectionstring and the other is also used to connect to the database server respectively.

The general connectionstring settings are shown below in the code:

```
<connectionStrings>
    <add name ="cnn" connectionString ="Initial Catalog = master;
  Data Source =localhost; Integrated Security = true"/>
</connectionStrings>
```

![What is connection strings?](https://www.mindstick.com/mindstickforums/58e29384-a52b-4781-b49f-3c40fa725150/images/21a9288a-79be-4de7-8ab4-8f2e6ca16def.png)\


---

Original Source: https://www.mindstick.com/forum/155710/what-is-connection-strings

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
