I've tried to collect data in a WCF service, but I always get error
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.
This happen when I uninstall SQL Server 2005 and replace it with SQL Server 2008. Please someone help me
Here's my 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;
}