title: Database Connection: Web.config Asp.net
body: <p>What's wrong with my connection string?
  I copied my files from one computer to another. Then I altered my connection string because I moved my files from another computer, it is not connecting to database. When I tried connecting to SQL Management Studio, it successfully connected to my server and when I try running my codes, it didn't.</p>
  
  <p>Here's my Connection String: (Web.config) - My server is Windows Authentication</p>
  
  <pre><code>&lt;add name="ConnectionStringMe" connectionString="Data Source=ZOZOW-PC\MSSQLEXPRESS;Database=sample_db;Persist Security Info = True" providerName="System.Data.SqlClient" /&gt;
  </code></pre>
  
  <p>It gives me error:</p>
  
  <blockquote>
    <p>A network-related or instance-specific error occurred while
    establishing a connection to SQL Server. The server was not found or
    was not accessible. Verify that the instance name is correct and that
    SQL Server is configured to allow remote connections. (provider: SQL
    Network Interfaces, error: 26 - Error Locating Server/Instance
    Specified)</p>
  </blockquote>
  
  <p>Is there any conflict if my database is from <strong>SQL Server Authentication</strong> then I moved it to <strong>Windows Authentication</strong>?</p>
  
  <p>Thank you.</p>