title: C# SQL Server Login Credentials
body: <p>This is my first time connecting to SQL Server via C#, apologies in advance.</p>
  
  <p>I'm trying to connect to my SQL Server to get some information. The code I'm using is:</p>
  
  <pre><code>SqlConnection myConnection = new SqlConnection("server=server;" +
                                     "Trusted_Connection=yes;" +
                                     "database=DB; " +
                                     "connection timeout=30;"+
                                     "User ID=SQLUser;" + "Password= SQLPass;");
  myConnection.Open();
  </code></pre>
  
  <p>However, when I try to connect, I get the error:</p>
  
  <blockquote>
    <p>Login failed for user 'Company\Personal ID'.</p>
  </blockquote>
  
  <p>These are not the credentials I intended to use (sqluser &amp; sqlpass). If anyone knows where I'm going wrong, I'd appreciate it.</p>