title: Unable to login after creating a user name and password in SQL Server
body: <p>I was trying to create a user and password for SQL Server authentication so I wrote the below code (Database = Master) </p>
  
  <pre><code>Create Login Khurram 
  with password = 'mypassword';
  go
  
  Create user iamtheuser for login khurram;
  go
  </code></pre>
  
  <p>and then changed the server security option to the Sql Server and Windows Authentication Mode but I get the below error when I try to login:</p>
  
  <blockquote>
    <p>Login failed for user khurram (Microsoft Sql Server, Error: 18456)</p>
  </blockquote>