Kontakte aus antony exportieren (über Navicat)
SELECT contact.id,contact.main_contact_id,contacttitle.`name` as title,contact.company,contact.firstname,contact.lastname,contact.street,contact.zipcode,contact.city,contactstate.`name` as state,contactcountry.`name` as country,contact.phone,contact.phone2,contact.fax,contact.email,contact.mobile,contact.homepage,contact.`comment`,contact.street_private,contact.zipcode_private,contact.city_private,privatestate.`name` as state_private,privatecountry.`name` as country_private,contact.phone_private,contact.phone2_private,contact.fax_private,contact.department,contact.birthday FROM contact LEFT JOIN type_state as contactstate ON contactstate.id = contact.state LEFT JOIN type_state as privatestate ON privatestate.id = contact.state_private LEFT JOIN type_title as contacttitle ON contacttitle.id = contact.title_id LEFT JOIN type_country as contactcountry ON contactcountry.id = contact.country_id LEFT JOIN type_country as privatecountry ON privatecountry.id = contact.country_id_private WHERE contact.deleted = 0 ORDER by main_contact_id ASC
Alle Kontakte löschen
z.B. nach einem fehlgeschlagenen Kontaktimport
DELETE FROM instance_properties WHERE instance_id=1; DELETE FROM tlstatus WHERE instance_id=1; DELETE FROM instance_properties_attachments where addin_id=1; DELETE FROM contact;
Alle Emails aus antony und dem Dateisystem löschen (über Navicat und Powershell)
Pfade im Dateisystem aus Datenbank holen und das Ergebniss in einem administrativen Powershell-Fenster ausführen
select CONCAT("Remove-item \'", SUBSTRING(guid, 1, 2), "/", SUBSTRING(guid, 3, 2) , "/", REPLACE( SUBSTRING(guid, 5), "-", "/"), "/\' -Recurse -Force") FROM instance_properties_attachments WHERE addin_id=3
Daten aus Datenbank löschen
DELETE FROM email_messages; DELETE FROM email_addresses; DELETE FROM `email_message-email_account`; DELETE FROM instance_properties WHERE instance_id=3; DELETE FROM tlstatus WHERE instance_id=3; DELETE FROM instance_properties_attachments where addin_id=3
Alle Termine aus antony löschen (über Navicat)
z.B. nach einem fehlgeschlagenen Terminimport
DELETE FROM appointment; DELETE FROM appointment_reminders; DELETE FROM appointment_resource; DELETE FROM instance_properties WHERE instance_id=4; DELETE FROM tlstatus WHERE instance_id=4; DELETE FROM instance_properties_attachments where addin_id=4;