title: SqlSrv identify the connection as a Windows User
body: <p>I'm using SqlSrv to connect to a Microsoft SQL Server. So far I was struggling to get SqlSrv to work, but that's ok now. On a Windows 2012R2 machine with XAMPP (PHP 5.5.19) I'm trying to connect to the database using Windows Authentication.</p>
  
  <p>According to the <a href="https://msdn.microsoft.com/en-us/library/ff628167.aspx" rel="nofollow">documentation</a> I'm using SQL Server Authentication when I'm providing UID and PWD in the connection options. So I left those options out but now the server tries to connect to the database as <code>Domain\ServerName</code> instead of <code>Domain\MyWindowsUserAccountName</code>. How can I set up the script to connect with my user credentials? Maybe I'm missing out on something obvious in the documentation...</p>