title: How to connect to sql-server with windows authentication from windows-service?
body: <p>I have programmed a Windows Service in C# which should connect to an SQL-Server 2005 Express Database with <code>System.Data.SqlClient</code>.</p>
  <p>As Microsoft prefers to use Windows Authentication over SQL Authentication I tried to connect to the database with Trusted Connection / Integrated Security.</p>
  <p>However that doesn't work as I get a:</p>
  <blockquote>
  <p>System.Data.SqlClient.SqlException: Login failed for user
  'NT AUTHORITY\LOCAL SERVICE'.</p>
  </blockquote>
  <p>Is it possible to login with a different Windows Account?</p>