title: C# SqlConnection could not be found
body: <p>I am trying to connect to the SQL database in my network using the code below. I've searched on Stackoverflow and web for this error and found so many other people experiencing this issue, applied and tested many none fixed my issue. Currently the code I have is below:</p>
  
  <pre><code>using System;
  using System.Data.SqlClient;
  
  namespace ConsoleApp2
  {
      class Program
      {
          static void Main(string[] args)
          {
              using ( SqlConnection conn = new SqlConnection)
              {
                  conn.ConnectionString = "Server=***;Database=***;Trusted_Connection=True;";
              }
          }
      }
  }
  </code></pre>
  
  <p>In the place of *** I have server and database names. Also, where do I enter the specific table?</p>