title: Trouble Connecting to sql server Login failed. "The login is from an untrusted domain and cannot be used with Windows authentication"
body: <p>I am trying to host a SQL server database, but whenever I try to connect to it I get this error:</p>
  
  <blockquote>
    <p>The login is from an untrusted domain and cannot be used with Windows
    authentication</p>
  </blockquote>
  
  <p>I am connecting through Matlab using the following command:</p>
  
  <pre><code>conn = database('Clinical_Data','DoyleLab07\Acc','','com.microsoft.sqlserver.jdbc.SQLServerDriver','jdbc:sqlserver://DOYLELAB07\SQLEXPRESS:54287;database=Clinical_Data;integratedSecurity=true;').
  </code></pre>
  
  <p>Connecting to the database using matlab worked fine as long as I was using matlab on the computer which I was using to host the server. However, when I use another computer and the same Matlab command I get the error I showed above. </p>
  
  <p>When I look under control panel\system. I notice that no domain is listed on my host PC or the PC I am using to connect to the host, but both computers are in the same workgroup. Would I be able to fix my problem by creating a domain and adding the foreign PC and the host to that domain? If so, how can this be accomplished?</p>
  
  <p>Any suggestions will be very much appreciated. 
  Thank you for reading my post. </p>