title: registering service which depends on MSSQLSERVER, Integrated security issue
body: <p>My auto-starting Windows Service written in C# depends on MS SQL Server and uses <code>Integrated Security=SSPI</code></p>
  
  <p>In the Installer I'm stating </p>
  
  <pre><code>this.serviceInstaller.ServicesDependedOn = new string[] {"MSSQLSERVER"};
  </code></pre>
  
  <p>Unfortunately, during <strong>auto-startup</strong> my service <strong>throws the exception</strong>:</p>
  
  <blockquote>
    <p>System.Data.SqlClient.SqlException (0x80131904): Cannot open database "<em>*</em>" requested by the login. The login failed.
    Login failed for user 'NT AUTHORITY\SYSTEM'.</p>
  </blockquote>
  
  <p>if I however <strong>start it manually</strong> later, it <strong>works correctly</strong> - connects to the database and works on it. </p>
  
  <p>Why is that happening?</p>