title: Can't execute SQL in WCF
body: <p>I've tried to collect data in a WCF service, but I always get error </p>
  
  <blockquote>
    <p>The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the  configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.</p>
  </blockquote>
  
  <p>This happen when I uninstall SQL Server 2005 and replace it with SQL Server 2008. Please someone help me</p>
  
  <p>Here's my code</p>
  
  <pre><code>public DataTable fillData(string connection, string tableName)
  {
      DataTable dt = new DataTable();
  
      using (SqlConnection con = new SqlConnection())
      {
          con.Open();
  
          using (SqlDataAdapter da = new SqlDataAdapter("select * from " + tableName, con)) 
          {
              da.Fill(dt);
          }
      }
  
      return dt;
  }
  </code></pre>