USE das GO TRUNCATE TABLE dbo.cpe_applications; TRUNCATE TABLE dbo.cpe_application_antibody_map; TRUNCATE TABLE dbo.cpe_dictionary_items; TRUNCATE TABLE dbo.cpe_dictionary_items_helper; TRUNCATE TABLE dbo.cpe_unmatched_applications; TRUNCATE TABLE dbo.cpe_cve_lookup_table; TRUNCATE TABLE dbo.cpe_cve_id_lookup_table; TRUNCATE TABLE dbo.cve_dictionary_items; TRUNCATE TABLE dbo.cve_dictionary_items_helper; UPDATE dbo.shepherd_configs SET value = scd.value FROM dbo.shepherd_configs sc INNER JOIN dbo.shepherd_configs_defaults scd ON sc.name = scd.name WHERE sc.name IN ('CPEApplicationGenerationConnectionTimeout', 'CPEApplicationGenerationConnectionTimeout2', 'CPEDBCommandConnectionTimeout', 'CPEDelayBetweenRequests', 'CPEDictionaryURL', 'CPEEnabled', 'CPEFirstSync', 'CPELastApplicationGeneration', 'CPELastApplicationPrune', 'CPELastMatching', 'CPELastQueryDate', 'CPELastQueryIndex', 'CPELastQueryStatus', 'CPELastUnsuccessfulQuery', 'CPETotalResults', 'CVEFirstSync', 'CVELastQueryDate', 'CVELastQueryIndex', 'CVELastQueryStatus', 'CVELastUnsuccessfulQuery', 'CVETotalResults')