title: sqlconnection is not defined
body: <p>I am trying to update some code. I have a vb file that begins with this...</p>
  <pre><code>Imports System.Data.SqlClient
  Imports System.Data.Sql
  Imports System.Data.SqlTypes
  Imports System.Configuration
  
  &lt;script runat=&quot;server&quot;&gt;
  </code></pre>
  <p>...and it is failing here...</p>
  <pre><code>Using oConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings(&quot;tps_write&quot;).ConnectionString())
  </code></pre>
  <p>The error it returns is...</p>
  <blockquote>
  <p>&quot;Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.</p>
  <p>Compiler Error Message: BC30002: Type 'SqlConnection' is not defined.&quot;</p>
  </blockquote>
  <p>Am I missing some system class?</p>
  <p>EDIT: I updated the code to this...</p>
  <pre><code>Using oConn As System.Data.SqlClient.SqlConnection = New System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings(&quot;tps_write&quot;).ConnectionString())
  </code></pre>
  <p>...and it accepts it. Why do I need to explicitly write out System.Data.SqlClient every time I use an object from that class???</p>