public void OptimizeStore()
{
try {
//Open connection
this.Connection.Open();
//Create command
var command = new SqlCommand("ALTER INDEX ALL ON [dbo].[Quadruples] REORGANIZE;", this.Connection);
//Execute command
command.ExecuteNonQuery();
//Close connection
this.Connection.Close();
}
catch (Exception ex) {
//Close connection
this.Connection.Close();
//Propagate exception
throw new RDFStoreException("Cannot optimize SQL Server store because: " + ex.Message, ex);
}
}