title: VBScript, SQL Integrated security, DB Connection Timeout
body: <p>I have a VBScript that connects to a <em>SQL Server</em>. I am using integrated security in the connection string:</p>
  
  <pre><code>Provider=SQLOLEDB;Data Source=servename;Initial Catalog=databasename;
  Integrated Security='SSPI';
  </code></pre>
  
  <p>Everything works perfectly when I execute the script by double clicking the <em>.vbs</em> file, but when I schedule the <em>.vbs</em> file to run through task scheduler, the connection to the database times out.</p>
  
  <p>I have task scheduler set up to run using the credentials that work when executing manually. </p>
  
  <p>I hope this is enough information and someone can help me with what the problem is. Please be kind to this virgin who has gotten lots of answers here before, but has never asked a question before.</p>