public Boolean DeleteAllMappings()
{
OleDbCommand theCMD;
String theSQL = "";
try
{
checkOpen();
theSQL = "DELETE * FROM [FeatureMappings]";
theCMD = new OleDbCommand(theSQL, theConn);
theCMD.ExecuteNonQuery();
theSQL = "DELETE * FROM [AttributeMappings]";
theCMD = new OleDbCommand(theSQL, theConn);
theCMD.ExecuteNonQuery();
theSQL = "DELETE * FROM [FeatureLoadProblems]";
theCMD = new OleDbCommand(theSQL, theConn);
theCMD.ExecuteNonQuery();
theSQL = "DELETE * FROM [ValueMappings]";
theCMD = new OleDbCommand(theSQL, theConn);
theCMD.ExecuteNonQuery();
theSQL = "DELETE * FROM [DataLossProblems]";
theCMD = new OleDbCommand(theSQL, theConn);
theCMD.ExecuteNonQuery();
return true;
}
catch (Exception ex)
{
return false;
}
}