What is connection strings?

Posted by  Lee Patric
 137  View(s)
Ratings:
Rate this:

Please explain me what is connection strings with suitable example.

  1. Re: What is connection strings?

    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 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?

Answer