USE [Arizona]

DECLARE @usedTablesArizona TABLE(
    id INT NOT NULL --IDENTITY
    , tblName VARCHAR(222) NOT NULL
)

--INSERT INTO @usedTablesArizona ([tblName])
--SELECT [s].[ASI_schemaname]+'.'+[s].[ASI_tablename]
--FROM [arizonaCash].[HCITools].[dbo].[Aggregate_Stats_index] s
--    JOIN [Arizona].sys.[tables] t ON SCHEMA_NAME(t.[schema_id]) = s.[ASI_schemaname] AND t.[name] = s.[ASI_tablename]
--WHERE s.[ASI_databasename]='arizona'
--AND s.[ASI_updatedate] BETWEEN DATEADD(YEAR, -1, CURRENT_TIMESTAMP) AND CURRENT_TIMESTAMP
--AND ISNULL([s].[ASI_user_lookups], 0)+ISNULL([s].[ASI_user_scans],0)+ISNULL([s].[ASI_user_seeks],0)+ISNULL([s].[ASI_user_updates],0) > 0
--AND [s].[ASI_tablename] NOT LIKE 'TT%'
--AND t.[is_ms_shipped] = 0
--GROUP BY [s].[ASI_tablename], [s].[ASI_schemaname]
--ORDER BY [s].[ASI_schemaname], [s].[ASI_tablename]

INSERT INTO @usedTablesArizona ([id], [tblName])
VALUES
( 1, 'atl.Change_tracking_history' ),
( 2, 'atl.SQL_error_log' ),
( 3, 'crs.ProcessMessageLog' ),
( 4, 'dam.AMR_count_config' ),
( 5, 'dam.HashValueUniqueIndexGuid' ),
( 6, 'dam.HashValueUniqueIndexInt' ),
( 7, 'dam.MissingData' ),
( 8, 'dam.MonitorTableHash' ),
( 9, 'dbo.AC_profit_cost_type_link' ),
( 10, 'dbo.Acc_pre_cost_entry_link' ),
( 11, 'dbo.Acc_structure_master_text' ),
( 12, 'dbo.Account' ),
( 13, 'dbo.Account_ACPE_lock' ),
( 14, 'dbo.Account_balance' ),
( 15, 'dbo.Account_chart' ),
( 16, 'dbo.Account_credit_insurance' ),
( 17, 'dbo.Account_group' ),
( 18, 'dbo.Account_group_text' ),
( 19, 'dbo.Account_interest' ),
( 20, 'dbo.Account_interest_rate' ),
( 21, 'dbo.Account_interest_text' ),
( 22, 'dbo.Account_key' ),
( 23, 'dbo.Account_link' ),
( 24, 'dbo.Account_PD_link' ),
( 25, 'dbo.Account_structure' ),
( 26, 'dbo.Account_structure_master' ),
( 27, 'dbo.Account_structure_text' ),
( 28, 'dbo.Account_text' ),
( 29, 'dbo.Accounting_balance' ),
( 30, 'dbo.Accounting_balance_detail' ),
( 31, 'dbo.Accounting_period' ),
( 32, 'dbo.Accounting_plan' ),
( 33, 'dbo.Accounting_plan_text' ),
( 34, 'dbo.Accounting_turnover_agg' ),
( 35, 'dbo.ACG_pre_cost_entry_link' ),
( 36, 'dbo.ACG_profit_cost_type_link' ),
( 37, 'dbo.ACPE_weighting_detail' ),
( 38, 'dbo.ACPE_weighting_master' ),
( 39, 'dbo.ACPE_weighting_master_text' ),
( 40, 'dbo.ACS_account_list' ),
( 41, 'dbo.ACS_layout_detail' ),
( 42, 'dbo.ACS_layout_detail_text' ),
( 43, 'dbo.ACS_layout_master' ),
( 44, 'dbo.ACS_layout_master_text' ),
( 45, 'dbo.ACS_profit_cost_type_list' ),
( 46, 'dbo.ACS_totalizator_link' ),
( 47, 'dbo.Active_directory_user' ),
( 48, 'dbo.Activity' ),
( 49, 'dbo.Activity_prod_rate_default' ),
( 50, 'dbo.Activity_supplement' ),
( 51, 'dbo.Activity_supplement_text' ),
( 52, 'dbo.Activity_text' ),
( 53, 'dbo.Activity_type' ),
( 54, 'dbo.Activity_type_text' ),
( 55, 'dbo.Address' ),
( 56, 'dbo.Address_category' ),
( 57, 'dbo.Address_category_text' ),
( 58, 'dbo.Address_contact_person_list' ),
( 59, 'dbo.Address_criteria' ),
( 60, 'dbo.Address_distance_chart' ),
( 61, 'dbo.Address_group' ),
( 62, 'dbo.Address_group_text' ),
( 63, 'dbo.Address_invitation' ),
( 64, 'dbo.Address_invoicing_block' ),
( 65, 'dbo.Address_item_link' ),
( 66, 'dbo.Address_key' ),
( 67, 'dbo.Address_link' ),
( 68, 'dbo.Address_merge_prevalidation' ),
( 69, 'dbo.Address_monitor' ),
( 70, 'dbo.Address_remark' ),
( 71, 'dbo.Address_salutation' ),
( 72, 'dbo.Address_type' ),
( 73, 'dbo.Address_type_text' ),
( 74, 'dbo.Advert_support' ),
( 75, 'dbo.Advert_support_target' ),
( 76, 'dbo.Advert_support_type' ),
( 77, 'dbo.Advert_support_type_OU_cap' ),
( 78, 'dbo.Advert_support_type_text' ),
( 79, 'dbo.AGD_DL_link' ),
( 80, 'dbo.Agenda' ),
( 81, 'dbo.Alloy_detail' ),
( 82, 'dbo.Alloy_element' ),
( 83, 'dbo.Alloy_element_quantity' ),
( 84, 'dbo.Alloy_element_text' ),
( 85, 'dbo.Alloy_header' ),
( 86, 'dbo.Alloy_header_text' ),
( 87, 'dbo.Alloy_pre_transaction' ),
( 88, 'dbo.Alloy_pre_transaction_link' ),
( 89, 'dbo.Alloy_pre_transaction_text' ),
( 90, 'dbo.Alloy_processing_cost' ),
( 91, 'dbo.Alloy_transaction' ),
( 92, 'dbo.Application_default' ),
( 93, 'dbo.APS_connection_info' ),
( 94, 'dbo.APS_context_monitor' ),
( 95, 'dbo.APS_context_monitor_log' ),
( 96, 'dbo.APS_monitor_row' ),
( 97, 'dbo.APS_monitor_table' ),
( 98, 'dbo.APS_synchro_journal' ),
( 99, 'dbo.APS_tech_criteria_type' ),
( 100, 'dbo.APS_tech_criteria_type_text' ),
( 101, 'dbo.APS_version_hist_detail' ),
( 102, 'dbo.APS_version_history' ),
( 103, 'dbo.ASDP_detail' ),
( 104, 'dbo.Asset' ),
( 105, 'dbo.Asset_deprec_method_period' ),
( 106, 'dbo.Asset_family' ),
( 107, 'dbo.Asset_family_text' ),
( 108, 'dbo.Asset_group' ),
( 109, 'dbo.Asset_group_text' ),
( 110, 'dbo.Asset_history' ),
( 111, 'dbo.Asset_insurance' ),
( 112, 'dbo.Asset_investment_history' ),
( 113, 'dbo.Asset_leasing' ),
( 114, 'dbo.Asset_location' ),
( 115, 'dbo.Asset_location_text' ),
( 116, 'dbo.Asset_maintenance' ),
( 117, 'dbo.Assortment' ),
( 118, 'dbo.Assortment_item_link' ),
( 119, 'dbo.Assortment_text' ),
( 120, 'dbo.ATS_time_period_balance' ),
( 121, 'dbo.ATT_cust_list_column' ),
( 122, 'dbo.ATT_cust_list_column_text' ),
( 123, 'dbo.ATT_customized_list' ),
( 124, 'dbo.ATT_customized_list_text' ),
( 125, 'dbo.ATT_list_column_link' ),
( 126, 'dbo.ATT_time_period_balance' ),
( 127, 'dbo.ATT_time_period_constraint' ),
( 128, 'dbo.ATT_totalizator_link' ),
( 129, 'dbo.Automatic_data_acquisition' ),
( 130, 'dbo.AX_item_mappings_rules' ),
( 131, 'dbo.AX_user_data_area_mapping' ),
( 132, 'dbo.Bank_card' ),
( 133, 'dbo.Bank_card_detail' ),
( 134, 'dbo.Bank_card_transaction' ),
( 135, 'dbo.Batch_run' ),
( 136, 'dbo.Batch_type' ),
( 137, 'dbo.Batch_type_text' ),
( 138, 'dbo.Bmc_application_default' ),
( 139, 'dbo.Bmc_application_key' ),
( 140, 'dbo.Bmc_application_key_text' ),
( 141, 'dbo.Bmc_authorized_task' ),
( 142, 'dbo.Bmc_batch_type' ),
( 143, 'dbo.Bmc_batch_type_text' ),
( 144, 'dbo.Bmc_context' ),
( 145, 'dbo.Bmc_context_text' ),
( 146, 'dbo.Bmc_desktop_property' ),
( 147, 'dbo.Bmc_form_preference' ),
( 148, 'dbo.Bmc_form_property' ),
( 149, 'dbo.Bmc_group_level_security' ),
( 150, 'dbo.Bmc_ID_counter' ),
( 151, 'dbo.Bmc_license' ),
( 152, 'dbo.Bmc_license_task_link' ),
( 153, 'dbo.Bmc_role' ),
( 154, 'dbo.Bmc_role_text' ),
( 155, 'dbo.Bmc_row_level_security' ),
( 156, 'dbo.Bmc_system' ),
( 157, 'dbo.Bmc_task' ),
( 158, 'dbo.BMC_task_log' ),
( 159, 'dbo.Bmc_task_text' ),
( 160, 'dbo.Bmc_user_profile' ),
( 161, 'dbo.Bmc_user_role' ),
( 162, 'dbo.BMH_rule_type_link' ),
( 163, 'dbo.BML_rule_link' ),
( 164, 'dbo.BMOH_formula_variable' ),
( 165, 'dbo.BMOH_selected_rule' ),
( 166, 'dbo.BOM_header' ),
( 167, 'dbo.BOM_line' ),
( 168, 'dbo.BOM_location' ),
( 169, 'dbo.BOM_option_header' ),
( 170, 'dbo.BOM_revision' ),
( 171, 'dbo.BOM_rule' ),
( 172, 'dbo.BOM_rule_text' ),
( 173, 'dbo.BOM_rule_type' ),
( 174, 'dbo.BOM_rule_type_text' ),
( 175, 'dbo.Booth' ),
( 176, 'dbo.Brand' ),
( 177, 'dbo.Brand_AD_link' ),
( 178, 'dbo.Brand_OU_link' ),
( 179, 'dbo.Brand_text' ),
( 180, 'dbo.Budget_type' ),
( 181, 'dbo.Budget_type_text' ),
( 182, 'dbo.Button' ),
( 183, 'dbo.Button_text' ),
( 184, 'dbo.BVR_header' ),
( 185, 'dbo.BVR_line' ),
( 186, 'dbo.BVR_member' ),
( 187, 'dbo.BVR_type' ),
( 188, 'dbo.Calendar_detail' ),
( 189, 'dbo.Calendar_header' ),
( 190, 'dbo.Calendar_header_text' ),
( 191, 'dbo.Card' ),
( 192, 'dbo.Cash_report_header' ),
( 193, 'dbo.Cash_report_line' ),
( 194, 'dbo.CCI_ATA_guarantee' ),
( 195, 'dbo.CLK_group' ),
( 196, 'dbo.CLK_group_text' ),
( 197, 'dbo.CLK_user_interface' ),
( 198, 'dbo.Clocking' ),
( 199, 'dbo.Clocking_key' ),
( 200, 'dbo.Clocking_message' ),
( 201, 'dbo.Clocking_message_text' ),
( 202, 'dbo.Clocking_summary' ),
( 203, 'dbo.Clocking_terminal' ),
( 204, 'dbo.Clocking_terminal_profile' ),
( 205, 'dbo.CLT_authorized_CLKG' ),
( 206, 'dbo.CLTP_schedule' ),
( 207, 'dbo.CLTP_user_interface' ),
( 208, 'dbo.CNCI_addr' ),
( 209, 'dbo.Comm_price_master_text' ),
( 210, 'dbo.Commercial_price_detail' ),
( 211, 'dbo.Commercial_price_master' ),
( 212, 'dbo.Communication_history' ),
( 213, 'dbo.Company' ),
( 214, 'dbo.Contact_person' ),
( 215, 'dbo.Contract_daily_time' ),
( 216, 'dbo.Contract_daily_time_detail' ),
( 217, 'dbo.Contract_time_adjustment' ),
( 218, 'dbo.Contract_time_table_date' ),
( 219, 'dbo.Contract_time_table_detail' ),
( 220, 'dbo.Contract_time_table_header' ),
( 221, 'dbo.Cost_acc_plausibility' ),
( 222, 'dbo.Cost_accounting_type' ),
( 223, 'dbo.Cost_accounting_type_text' ),
( 224, 'dbo.Cost_entry' ),
( 225, 'dbo.Country' ),
( 226, 'dbo.Country_text' ),
( 227, 'dbo.CR_receipt_detail' ),
( 228, 'dbo.CR_receipt_input_schema' ),
( 229, 'dbo.CR_receipt_master' ),
( 230, 'dbo.CR_receipt_POS' ),
( 231, 'dbo.Credit_card_company' ),
( 232, 'dbo.Criteria' ),
( 233, 'dbo.Criteria_schema_detail' ),
( 234, 'dbo.Criteria_schema_header' ),
( 235, 'dbo.Criteria_schema_values' ),
( 236, 'dbo.Criteria_text' ),
( 237, 'dbo.Criteria_type' ),
( 238, 'dbo.Criteria_type_text' ),
( 239, 'dbo.CRS_batch_run' ),
( 240, 'dbo.CRS_document_header' ),
( 241, 'dbo.CSH_text' ),
( 242, 'dbo.Currency' ),
( 243, 'dbo.Currency_account' ),
( 244, 'dbo.Currency_rate' ),
( 245, 'dbo.Currency_text' ),
( 246, 'dbo.CUST_ITCOSTA_Spaceman_conversion' ),
( 247, 'dbo.Custom_export_licence' ),
( 248, 'dbo.Custom_export_licence_text' ),
( 249, 'dbo.Customer' ),
( 250, 'dbo.Customer_card' ),
( 251, 'dbo.Data_interface_status' ),
( 252, 'dbo.DBA_change_tracking' ),
( 253, 'dbo.DBA_change_tracking_DWH' ),
( 254, 'dbo.DBA_change_tracking_template' ),
( 255, 'dbo.DBA_change_tracking_version' ),
( 256, 'dbo.DBA_Mailing_list' ),
( 257, 'dbo.DBA_Servers_Monitoring' ),
( 258, 'dbo.DBA_Working_hours' ),
( 259, 'dbo.Default_journal' ),
( 260, 'dbo.Deleted_Lore_Item_Facing' ),
( 261, 'dbo.Delivery_code' ),
( 262, 'dbo.Delivery_code_text' ),
( 263, 'dbo.Delivery_cost' ),
( 264, 'dbo.Delivery_cost_DC_link' ),
( 265, 'dbo.Delivery_cost_detail' ),
( 266, 'dbo.Delivery_cost_text' ),
( 267, 'dbo.Department' ),
( 268, 'dbo.Department_text' ),
( 269, 'dbo.Depreciation_method' ),
( 270, 'dbo.Depreciation_method_period' ),
( 271, 'dbo.DH_address_link' ),
( 272, 'dbo.DH_criteria' ),
( 273, 'dbo.DH_customer_card_link' ),
( 274, 'dbo.DH_facility_link' ),
( 275, 'dbo.DH_loyalty_card' ),
( 276, 'dbo.DH_pre_calc_header' ),
( 277, 'dbo.DH_pre_calc_quantity' ),
( 278, 'dbo.DH_pre_calc_surplus' ),
( 279, 'dbo.DH_signature' ),
( 280, 'dbo.DH_status_history' ),
( 281, 'dbo.DiscountVoucher' ),
( 282, 'dbo.DiscountVoucher_FS_link' ),
( 283, 'dbo.DiscountVoucherCondition' ),
( 284, 'dbo.DiscountVoucherLinkOU' ),
( 285, 'dbo.DiscountVoucherText' ),
( 286, 'dbo.DL_alloy_batch' ),
( 287, 'dbo.DL_BML_link' ),
( 288, 'dbo.DL_criteria' ),
( 289, 'dbo.DL_planning' ),
( 290, 'dbo.DL_posology' ),
( 291, 'dbo.DL_pre_calc_material' ),
( 292, 'dbo.DL_pre_calc_process_line' ),
( 293, 'dbo.DL_quantity_formula' ),
( 294, 'dbo.DL_unit_price_breakdown' ),
( 295, 'dbo.DL_WKOP_link' ),
( 296, 'dbo.Doc_header_customs_info' ),
( 297, 'dbo.Document_copy' ),
( 298, 'dbo.Document_counter' ),
( 299, 'dbo.Document_date' ),
( 300, 'dbo.Document_error' ),
( 301, 'dbo.Document_error_link' ),
( 302, 'dbo.Document_header' ),
( 303, 'dbo.Document_header_link' ),
( 304, 'dbo.Document_header_revision' ),
( 305, 'dbo.Document_header_text' ),
( 306, 'dbo.Document_line' ),
( 307, 'dbo.Document_line_date' ),
( 308, 'dbo.Document_line_link' ),
( 309, 'dbo.Document_periodicity' ),
( 310, 'dbo.Document_periodicity_date' ),
( 311, 'dbo.Document_transfer_method' ),
( 312, 'dbo.Document_type' ),
( 313, 'dbo.Document_type_text' ),
( 314, 'dbo.DT_address' ),
( 315, 'dbo.DT_cash_register' ),
( 316, 'dbo.DT_device' ),
( 317, 'dbo.DT_document_header' ),
( 318, 'dbo.DT_document_line' ),
( 319, 'dbo.DT_registration' ),
( 320, 'dbo.DT_registration_address' ),
( 321, 'dbo.DVACSpecificTargetItem' ),
( 322, 'dbo.DVActionDefinition' ),
( 323, 'dbo.DVCouponActionDefinition' ),
( 324, 'dbo.DVCouponActionDefinitionText' ),
( 325, 'dbo.DVCouponActionDefPrinting' ),
( 326, 'dbo.DVPackageElement' ),
( 327, 'dbo.DWT_Item_Search_Itk' ),
( 328, 'dbo.DWT_Item_Search_Ittx' ),
( 329, 'dbo.DWT_Item_Search_PHGDSC' ),
( 330, 'dbo.EAS_APS_address_link' ),
( 331, 'dbo.EAS_APS_op_link_text' ),
( 332, 'dbo.EAS_APS_operation_link' ),
( 333, 'dbo.EAS_file_header' ),
( 334, 'dbo.EAS_file_line' ),
( 335, 'dbo.EAS_structure' ),
( 336, 'dbo.EAS_structure_operation' ),
( 337, 'dbo.EAS_structure_text' ),
( 338, 'dbo.EAS_structure_trigger' ),
( 339, 'dbo.EDI_DTA' ),
( 340, 'dbo.EDI_DTA_entry_link' ),
( 341, 'dbo.EDI_DTA_PCA_payment_link' ),
( 342, 'dbo.EDI_DTA_PIH_link' ),
( 343, 'dbo.EDI_DTA_structure' ),
( 344, 'dbo.EDI_DTA_structure_text' ),
( 345, 'dbo.Effective_pre_cost_entry' ),
( 346, 'dbo.Effective_pre_entry_link' ),
( 347, 'dbo.Effective_preliminary_entry' ),
( 348, 'dbo.Effective_time' ),
( 349, 'dbo.EFT_OW_method' ),
( 350, 'dbo.EFT_OW_method_text' ),
( 351, 'dbo.EFT_OW_pre_entry' ),
( 352, 'dbo.EFT_OW_rule' ),
( 353, 'dbo.EFT_terminal' ),
( 354, 'dbo.EFT_terminal_OU_link' ),
( 355, 'dbo.EFT_terminal_text' ),
( 356, 'dbo.Element_account' ),
( 357, 'dbo.Element_transaction' ),
( 358, 'dbo.Email_pattern' ),
( 359, 'dbo.EMC_absence' ),
( 360, 'dbo.EMC_certificate_layout' ),
( 361, 'dbo.EMC_criteria' ),
( 362, 'dbo.EMC_loan' ),
( 363, 'dbo.EMC_multi_profile' ),
( 364, 'dbo.EMC_payment_method' ),
( 365, 'dbo.EMC_payroll_period' ),
( 366, 'dbo.EMC_payroll_variable' ),
( 367, 'dbo.EMC_periodicity' ),
( 368, 'dbo.EMC_termination_reason' ),
( 369, 'dbo.EMC_termination_reason_text' ),
( 370, 'dbo.EMC_termination_type' ),
( 371, 'dbo.EMC_termination_type_text' ),
( 372, 'dbo.EMCH_payroll_period_link' ),
( 373, 'dbo.Employee' ),
( 374, 'dbo.Employee_work_plan' ),
( 375, 'dbo.Employment_contract' ),
( 376, 'dbo.Employment_contract_history' ),
( 377, 'dbo.Ems_address' ),
( 378, 'dbo.EMS_deposit' ),
( 379, 'dbo.Ems_room' ),
( 380, 'dbo.Ems_stay' ),
( 381, 'dbo.EMSS_DL_link' ),
( 382, 'dbo.Entry' ),
( 383, 'dbo.Entry_key' ),
( 384, 'dbo.Entry_link' ),
( 385, 'dbo.Entry_reconciliation' ),
( 386, 'dbo.Entry_type' ),
( 387, 'dbo.Entry_type_text' ),
( 388, 'dbo.EPD_provider' ),
( 389, 'dbo.EPP_status_history' ),
( 390, 'dbo.ERP_role' ),
( 391, 'dbo.ERP_role_mapping' ),
( 392, 'dbo.ERP_role_text' ),
( 393, 'dbo.Ethnic_group' ),
( 394, 'dbo.Ethnic_group_text' ),
( 395, 'dbo.Event' ),
( 396, 'dbo.Event_catalogue' ),
( 397, 'dbo.Event_catalogue_link' ),
( 398, 'dbo.Event_contact_address' ),
( 399, 'dbo.Event_premise' ),
( 400, 'dbo.Event_registration' ),
( 401, 'dbo.Event_sector' ),
( 402, 'dbo.Event_service' ),
( 403, 'dbo.External_entry' ),
( 404, 'dbo.External_file' ),
( 405, 'dbo.External_file_section' ),
( 406, 'dbo.External_file_section_text' ),
( 407, 'dbo.External_file_text' ),
( 408, 'dbo.External_preliminary_entry' ),
( 409, 'dbo.FA_account_periodicity' ),
( 410, 'dbo.FA_RAFAM_type' ),
( 411, 'dbo.FA_RAFAM_type_text' ),
( 412, 'dbo.Facility' ),
( 413, 'dbo.Facility_address_link' ),
( 414, 'dbo.Facility_technical_criteria' ),
( 415, 'dbo.Family_allowance' ),
( 416, 'dbo.Family_allowance_account' ),
( 417, 'dbo.Family_allowance_history' ),
( 418, 'dbo.Family_allowance_journal' ),
( 419, 'dbo.Family_allowance_tariff' ),
( 420, 'dbo.Family_technical_criteria' ),
( 421, 'dbo.Filestream' ),
( 422, 'dbo.Financial_institution' ),
( 423, 'dbo.Financial_relation_account' ),
( 424, 'dbo.Fiscal_year' ),
( 425, 'dbo.Fixed_price' ),
( 426, 'dbo.Form_property_model' ),
( 427, 'dbo.FP_unit_price_breakdown' ),
( 428, 'dbo.FTC_authorized_value' ),
( 429, 'dbo.FUN_OUSH_link' ),
( 430, 'dbo.Hotline' ),
( 431, 'dbo.HR_certificate' ),
( 432, 'dbo.HR_certificate_text' ),
( 433, 'dbo.HR_evaluation_detail' ),
( 434, 'dbo.HR_evaluation_master' ),
( 435, 'dbo.HR_header' ),
( 436, 'dbo.HR_language_skill' ),
( 437, 'dbo.HR_prof_experience' ),
( 438, 'dbo.HR_skill' ),
( 439, 'dbo.HR_skill_level' ),
( 440, 'dbo.HR_skill_level_text' ),
( 441, 'dbo.HR_skill_type' ),
( 442, 'dbo.HR_skill_type_text' ),
( 443, 'dbo.HR_training' ),
( 444, 'dbo.HR_training_attendee' ),
( 445, 'dbo.HR_training_course' ),
( 446, 'dbo.HR_training_course_text' ),
( 447, 'dbo.HR_training_field' ),
( 448, 'dbo.HR_training_field_text' ),
( 449, 'dbo.HR_training_type' ),
( 450, 'dbo.HR_training_type_text' ),
( 451, 'dbo.HR_warning' ),
( 452, 'dbo.Incident_detail' ),
( 453, 'dbo.Incident_header' ),
( 454, 'dbo.Incident_type' ),
( 455, 'dbo.Incident_type_text' ),
( 456, 'dbo.IND_DH_link' ),
( 457, 'dbo.IND_status_history' ),
( 458, 'dbo.INS_PD_link' ),
( 459, 'dbo.Insurance_network' ),
( 460, 'dbo.Insurance_network_text' ),
( 461, 'dbo.Insurance_policy' ),
( 462, 'dbo.INT_PD_link' ),
( 463, 'dbo.Inter_OU_entry' ),
( 464, 'dbo.Inter_OU_pre_entry' ),
( 465, 'dbo.Inter_OU_pre_ET_master' ),
( 466, 'dbo.Inter_OU_pre_ET_master_text' ),
( 467, 'dbo.Interco_structure' ),
( 468, 'dbo.Interco_structure_target' ),
( 469, 'dbo.Interco_synchronization' ),
( 470, 'dbo.Interco_task' ),
( 471, 'dbo.Interco_task_PD_link' ),
( 472, 'dbo.Interco_task_text' ),
( 473, 'dbo.Inventory_batch' ),
( 474, 'dbo.Inventory_location' ),
( 475, 'dbo.Inventory_site' ),
( 476, 'dbo.Inventory_type' ),
( 477, 'dbo.Inventory_type_text' ),
( 478, 'dbo.Invitation' ),
( 479, 'dbo.Invoicing_method' ),
( 480, 'dbo.Invoicing_method_text' ),
( 481, 'dbo.IT_categ_management_text' ),
( 482, 'dbo.IT_category_management' ),
( 483, 'dbo.IT_change_request' ),
( 484, 'dbo.IT_config_setting' ),
( 485, 'dbo.IT_ITCM_history' ),
( 486, 'dbo.IT_label_print_log' ),
( 487, 'dbo.IT_weighing_category' ),
( 488, 'dbo.IT_weighing_category_text' ),
( 489, 'dbo.ITCAT_IT_link' ),
( 490, 'dbo.ITCAT_OUST_link' ),
( 491, 'dbo.ITCHR_consequence' ),
( 492, 'dbo.ITCHR_item_link' ),
( 493, 'dbo.ITCHR_status_history' ),
( 494, 'dbo.ITCOSTA_CR_link' ),
( 495, 'dbo.Item' ),
( 496, 'dbo.Item_alloy' ),
( 497, 'dbo.Item_alloy_quantity' ),
( 498, 'dbo.Item_attachment' ),
( 499, 'dbo.Item_catalog' ),
( 500, 'dbo.Item_catalog_text' ),
( 501, 'dbo.Item_context' ),
( 502, 'dbo.Item_context_status' ),
( 503, 'dbo.Item_context_status_text' ),
( 504, 'dbo.Item_context_text' ),
( 505, 'dbo.Item_criteria' ),
( 506, 'dbo.Item_dispatch_header' ),
( 507, 'dbo.Item_dispatch_line' ),
( 508, 'dbo.Item_family' ),
( 509, 'dbo.Item_family_text' ),
( 510, 'dbo.Item_group' ),
( 511, 'dbo.Item_group_def_accounting' ),
( 512, 'dbo.Item_group_text' ),
( 513, 'dbo.Item_inventory' ),
( 514, 'dbo.Item_key' ),
( 515, 'dbo.Item_link' ),
( 516, 'dbo.Item_location' ),
( 517, 'dbo.Item_LORE_min_max' ),
( 518, 'dbo.Item_manufacturing' ),
( 519, 'dbo.Item_price_range' ),
( 520, 'dbo.Item_price_range_text' ),
( 521, 'dbo.Item_process' ),
( 522, 'dbo.Item_purchase' ),
( 523, 'dbo.Item_quantity' ),
( 524, 'dbo.Item_regulation' ),
( 525, 'dbo.Item_relation_info' ),
( 526, 'dbo.Item_revision' ),
( 527, 'dbo.Item_sale' ),
( 528, 'dbo.Item_seasonal_stock_info' ),
( 529, 'dbo.Item_shipping' ),
( 530, 'dbo.Item_site' ),
( 531, 'dbo.Item_standard_cost' ),
( 532, 'dbo.Item_statistics' ),
( 533, 'dbo.Item_statistics_monthly' ),
( 534, 'dbo.Item_statistics_yearly' ),
( 535, 'dbo.Item_status_history' ),
( 536, 'dbo.Item_technical_criteria' ),
( 537, 'dbo.Item_terms' ),
( 538, 'dbo.Item_text' ),
( 539, 'dbo.Item_text_planned' ),
( 540, 'dbo.Item_unit_conversion' ),
( 541, 'dbo.ITTC_history' ),
( 542, 'dbo.JAL_authorized_ACPE' ),
( 543, 'dbo.Job_function' ),
( 544, 'dbo.Job_function_text' ),
( 545, 'dbo.Journal' ),
( 546, 'dbo.Knowledge_base' ),
( 547, 'dbo.Knowledge_base_category' ),
( 548, 'dbo.Knowledge_base_key' ),
( 549, 'dbo.Knowledge_category' ),
( 550, 'dbo.Knowledge_category_text' ),
( 551, 'dbo.LAN_app_equivalence' ),
( 552, 'dbo.Language' ),
( 553, 'dbo.Language_text' ),
( 554, 'dbo.Leasing' ),
( 555, 'dbo.Ledger' ),
( 556, 'dbo.Ledger_text' ),
( 557, 'dbo.Linked_document' ),
( 558, 'dbo.LORE_average_sales_qty' ),
( 559, 'dbo.LORE_calculation_log' ),
( 560, 'dbo.LORE_Delivery_By_Day' ),
( 561, 'dbo.LORE_evaluation_period' ),
( 562, 'dbo.LORE_item_ABC_code' ),
( 563, 'dbo.LORE_item_facing' ),
( 564, 'dbo.LORE_management_level' ),
( 565, 'dbo.LORE_poisson_coefficient' ),
( 566, 'dbo.LORE_rotation_ABC' ),
( 567, 'dbo.LORE_rotation_ABC_detail' ),
( 568, 'dbo.LORE_service_level_rate' ),
( 569, 'dbo.LORE_statistical_period' ),
( 570, 'dbo.LORE_store_opening_days' ),
( 571, 'dbo.LORE_supplying_procedure' ),
( 572, 'dbo.LORE_wilson_corr_fact_criteria' ),
( 573, 'dbo.LORE_wilson_correction_factor' ),
( 574, 'dbo.LORE_wilson_interest_rate' ),
( 575, 'dbo.LORE_wilson_logistics_cost' ),
( 576, 'dbo.LORE_wilson_purchasing_cost' ),
( 577, 'dbo.LORE_z_coefficient' ),
( 578, 'dbo.Loyalty_card' ),
( 579, 'dbo.Machine' ),
( 580, 'dbo.Machine_downtime' ),
( 581, 'dbo.Machine_text' ),
( 582, 'dbo.Machine_time' ),
( 583, 'dbo.MAFAM_item_link' ),
( 584, 'dbo.MAG_ad' ),
( 585, 'dbo.MAG_ad_item' ),
( 586, 'dbo.MAG_ad_status_history' ),
( 587, 'dbo.MAG_ad_type' ),
( 588, 'dbo.MAG_ad_type_text' ),
( 589, 'dbo.MAG_page' ),
( 590, 'dbo.MAG_status_history' ),
( 591, 'dbo.MAGAD_DL_link' ),
( 592, 'dbo.MAGAD_technical_criteria' ),
( 593, 'dbo.Magazine' ),
( 594, 'dbo.Magazine_type' ),
( 595, 'dbo.Magazine_type_text' ),
( 596, 'dbo.Maintenance' ),
( 597, 'dbo.Maintenance_contract' ),
( 598, 'dbo.Manual_clocking' ),
( 599, 'dbo.Manufacturer' ),
( 600, 'dbo.Margin_class' ),
( 601, 'dbo.Margin_class_text' ),
( 602, 'dbo.Margin_factor_detail' ),
( 603, 'dbo.Margin_factor_master' ),
( 604, 'dbo.Margin_factor_master_text' ),
( 605, 'dbo.Marital_status' ),
( 606, 'dbo.Marketing_action_detail' ),
( 607, 'dbo.Marketing_activity_header' ),
( 608, 'dbo.Marketing_type' ),
( 609, 'dbo.Marketing_type_text' ),
( 610, 'dbo.Material_requirement' ),
( 611, 'dbo.Material_requirement_link' ),
( 612, 'dbo.Modifier_definition' ),
( 613, 'dbo.Modifier_exclusion' ),
( 614, 'dbo.MRP_log' ),
( 615, 'dbo.Numerary_value' ),
( 616, 'dbo.Object_merge_log' ),
( 617, 'dbo.Occupation' ),
( 618, 'dbo.Occupation_text' ),
( 619, 'dbo.OFFCLD_reject' ),
( 620, 'dbo.Offline_clocking' ),
( 621, 'dbo.Offline_clocking_detail' ),
( 622, 'dbo.Operation' ),
( 623, 'dbo.Operation_role' ),
( 624, 'dbo.OPT_DH_info' ),
( 625, 'dbo.OPT_measure' ),
( 626, 'dbo.OPT_task_info' ),
( 627, 'dbo.Organizational_unit' ),
( 628, 'dbo.OU_advertising_space' ),
( 629, 'dbo.OU_authorized_interco_task' ),
( 630, 'dbo.OU_authorized_PD' ),
( 631, 'dbo.OU_group' ),
( 632, 'dbo.OU_group_link' ),
( 633, 'dbo.OU_group_text' ),
( 634, 'dbo.OU_item_link' ),
( 635, 'dbo.OU_manager' ),
( 636, 'dbo.OU_price_code_priority' ),
( 637, 'dbo.OU_store_history' ),
( 638, 'dbo.OU_store_history_2016_08_22' ),
( 639, 'dbo.OU_store_type' ),
( 640, 'dbo.OU_store_type_budget' ),
( 641, 'dbo.OU_store_type_text' ),
( 642, 'dbo.OU_user_role' ),
( 643, 'dbo.OUAS_DL_link' ),
( 644, 'dbo.OUAS_technical_criteria' ),
( 645, 'dbo.Package_detail' ),
( 646, 'dbo.Package_doc_line_link' ),
( 647, 'dbo.Package_header' ),
( 648, 'dbo.Packing_list' ),
( 649, 'dbo.Packing_type' ),
( 650, 'dbo.Packing_type_text' ),
( 651, 'dbo.Payment_input_detail' ),
( 652, 'dbo.Payment_input_header' ),
( 653, 'dbo.Payment_method' ),
( 654, 'dbo.Payment_method_text' ),
( 655, 'dbo.Payment_proposal_bank' ),
( 656, 'dbo.Payment_proposal_batch' ),
( 657, 'dbo.Payment_terms' ),
( 658, 'dbo.Payment_terms_detail' ),
( 659, 'dbo.Payment_terms_text' ),
( 660, 'dbo.Payroll_batch' ),
( 661, 'dbo.Payroll_batch_bank' ),
( 662, 'dbo.Payroll_batch_detail' ),
( 663, 'dbo.Payroll_calc_detail' ),
( 664, 'dbo.Payroll_calculation' ),
( 665, 'dbo.Payroll_employee_profile' ),
( 666, 'dbo.Payroll_heading' ),
( 667, 'dbo.Payroll_heading_specs' ),
( 668, 'dbo.Payroll_heading_text' ),
( 669, 'dbo.Payroll_parameters' ),
( 670, 'dbo.Payroll_period' ),
( 671, 'dbo.Payroll_period_master' ),
( 672, 'dbo.Payroll_period_master_text' ),
( 673, 'dbo.Payroll_period_text' ),
( 674, 'dbo.Payroll_period_type' ),
( 675, 'dbo.Payroll_period_type_text' ),
( 676, 'dbo.Payroll_profile_detail' ),
( 677, 'dbo.Payroll_profile_master' ),
( 678, 'dbo.Payroll_profile_master_text' ),
( 679, 'dbo.Payroll_scale_date' ),
( 680, 'dbo.Payroll_scale_detail' ),
( 681, 'dbo.Payroll_scale_master' ),
( 682, 'dbo.Payroll_scale_master_text' ),
( 683, 'dbo.PCA_EMC_absence' ),
( 684, 'dbo.PCA_EMC_loan' ),
( 685, 'dbo.PCA_payment_method' ),
( 686, 'dbo.PCC_totalizator_link' ),
( 687, 'dbo.PCT_totalizator_link' ),
( 688, 'dbo.PD_default_address_link' ),
( 689, 'dbo.PD_item_group_link' ),
( 690, 'dbo.PD_link' ),
( 691, 'dbo.PD_minimum_amount' ),
( 692, 'dbo.PD_pre_cost_entry_link' ),
( 693, 'dbo.pda_CRM_reprocessing' ),
( 694, 'dbo.PEM_amount_breakdown' ),
( 695, 'dbo.PerformancePoint' ),
( 696, 'dbo.PerformancePointAggregation' ),
( 697, 'dbo.Periodic_document_model' ),
( 698, 'dbo.Periodicity_detail' ),
( 699, 'dbo.Periodicity_master' ),
( 700, 'dbo.Periodicity_master_text' ),
( 701, 'dbo.Periodicity_type' ),
( 702, 'dbo.Periodicity_type_text' ),
( 703, 'dbo.PH_APOS_item_status' ),
( 704, 'dbo.PH_Clinical_Check' ),
( 705, 'dbo.PH_Clinical_Check_Text' ),
( 706, 'dbo.PH_Clinical_Check_Type' ),
( 707, 'dbo.PH_Clinical_Check_Type_Text' ),
( 708, 'dbo.PH_custom_insurance_plan' ),
( 709, 'dbo.PH_ins_plan_pattern' ),
( 710, 'dbo.PH_ins_plan_pattern_master' ),
( 711, 'dbo.PH_ins_plan_refund_link' ),
( 712, 'dbo.PH_insurance' ),
( 713, 'dbo.PH_insurance_agreement' ),
( 714, 'dbo.PH_insurance_card' ),
( 715, 'dbo.PH_insurance_card_validation_history' ),
( 716, 'dbo.PH_insurance_group' ),
( 717, 'dbo.PH_insurance_group_link' ),
( 718, 'dbo.PH_insurance_group_text' ),
( 719, 'dbo.PH_insurance_history' ),
( 720, 'dbo.PH_insurance_plan' ),
( 721, 'dbo.PH_insurance_recommendation' ),
( 722, 'dbo.PH_insurance_supplement' ),
( 723, 'dbo.PH_insurance_tax_link' ),
( 724, 'dbo.PH_invoice_header' ),
( 725, 'dbo.PH_item' ),
( 726, 'dbo.PH_item_commercial_rule' ),
( 727, 'dbo.PH_item_insurance_link' ),
( 728, 'dbo.PH_item_limitation' ),
( 729, 'dbo.PH_item_regulation_info' ),
( 730, 'dbo.PH_OICM_code' ),
( 731, 'dbo.PH_OICM_code_text' ),
( 732, 'dbo.PH_OICM_history' ),
( 733, 'dbo.PH_organizational_unit' ),
( 734, 'dbo.PH_patient' ),
( 735, 'dbo.PH_patient_clinical_check' ),
( 736, 'dbo.PH_patient_tax_link' ),
( 737, 'dbo.PH_payment_receipt' ),
( 738, 'dbo.PH_PHIPM_text' ),
( 739, 'dbo.PH_posology_code' ),
( 740, 'dbo.PH_posology_code_text' ),
( 741, 'dbo.PH_prescriber' ),
( 742, 'dbo.PH_Prescriber_ins_link' ),
( 743, 'dbo.PH_prescriber_role' ),
( 744, 'dbo.PH_prescription_header' ),
( 745, 'dbo.PH_prescription_line' ),
( 746, 'dbo.PH_product' ),
( 747, 'dbo.PH_refund_code' ),
( 748, 'dbo.PH_refund_code_relation' ),
( 749, 'dbo.PH_refund_code_text' ),
( 750, 'dbo.PH_sales_import' ),
( 751, 'dbo.PH_spec_tariff_addr_link' ),
( 752, 'dbo.PH_spec_tariff_detail' ),
( 753, 'dbo.PH_spec_tariff_master' ),
( 754, 'dbo.PH_spec_tariff_master_txt' ),
( 755, 'dbo.PH_std_posology' ),
( 756, 'dbo.PH_std_posology_text' ),
( 757, 'dbo.PH_tax_history' ),
( 758, 'dbo.Pharmacy_indicator' ),
( 759, 'dbo.PHGD_ACSC' ),
( 760, 'dbo.PHGD_ACXI' ),
( 761, 'dbo.PHGD_Brevier' ),
( 762, 'dbo.PHGD_BrevierText' ),
( 763, 'dbo.PHGD_CODES' ),
( 764, 'dbo.PHGD_CODETXT' ),
( 765, 'dbo.PHGD_CommonStyleSheet' ),
( 766, 'dbo.PHGD_Compendium' ),
( 767, 'dbo.PHGD_CompendiumParagraph' ),
( 768, 'dbo.PHGD_CompendiumText' ),
( 769, 'dbo.PHGD_LIMITATION' ),
( 770, 'dbo.PHGD_LIMITTXT' ),
( 771, 'dbo.PHGD_product_form' ),
( 772, 'dbo.PHGD_SC' ),
( 773, 'dbo.PHGD_XI' ),
( 774, 'dbo.PHGD_XIM' ),
( 775, 'dbo.PHGD_XITXT' ),
( 776, 'dbo.PHID_alloy' ),
( 777, 'dbo.PHIP_date' ),
( 778, 'dbo.Phone_call_log' ),
( 779, 'dbo.Physical_inventory_detail' ),
( 780, 'dbo.Physical_inventory_master' ),
( 781, 'dbo.PJ_item_link' ),
( 782, 'dbo.PJ_pre_cost_entry_link' ),
( 783, 'dbo.PJS_layout_detail' ),
( 784, 'dbo.PJS_layout_detail_text' ),
( 785, 'dbo.PJS_layout_master' ),
( 786, 'dbo.PJS_layout_master_text' ),
( 787, 'dbo.PJS_task_selection' ),
( 788, 'dbo.PJS_totalizator_link' ),
( 789, 'dbo.PKD_DL_link' ),
( 790, 'dbo.Point_of_sale' ),
( 791, 'dbo.PPB_address_selection' ),
( 792, 'dbo.PPB_OU_selection' ),
( 793, 'dbo.PPB_payment_method' ),
( 794, 'dbo.PR_certificate_detail' ),
( 795, 'dbo.PR_certificate_header' ),
( 796, 'dbo.PR_certificate_layout' ),
( 797, 'dbo.PR_certificate_layout_text' ),
( 798, 'dbo.PR_cust_list_column' ),
( 799, 'dbo.PR_cust_list_column_text' ),
( 800, 'dbo.PR_customized_list' ),
( 801, 'dbo.PR_customized_list_text' ),
( 802, 'dbo.PR_global_value_link' ),
( 803, 'dbo.PR_global_value_link_text' ),
( 804, 'dbo.PR_official_list' ),
( 805, 'dbo.PR_official_list_col_text' ),
( 806, 'dbo.PR_official_list_column' ),
( 807, 'dbo.PR_official_list_text' ),
( 808, 'dbo.PR_periodicity_type' ),
( 809, 'dbo.PR_periodicity_type_text' ),
( 810, 'dbo.PRCH_EPP_link' ),
( 811, 'dbo.PRCH_status_history' ),
( 812, 'dbo.Pre_cost_entry' ),
( 813, 'dbo.Pre_cost_entry_master' ),
( 814, 'dbo.Pre_cost_entry_master_text' ),
( 815, 'dbo.Pre_entry_link' ),
( 816, 'dbo.Predefined_entry' ),
( 817, 'dbo.Predefined_entry_flow' ),
( 818, 'dbo.Predefined_entry_print_text' ),
( 819, 'dbo.Predefined_entry_rounding' ),
( 820, 'dbo.Prelim_entry_master_text' ),
( 821, 'dbo.Preliminary_entry' ),
( 822, 'dbo.Preliminary_entry_master' ),
( 823, 'dbo.Premise' ),
( 824, 'dbo.Premise_text' ),
( 825, 'dbo.Prescription' ),
( 826, 'dbo.Prescription_task_link' ),
( 827, 'dbo.PRH_activity_type_link' ),
( 828, 'dbo.PRH_boundary' ),
( 829, 'dbo.PRH_boundary_history' ),
( 830, 'dbo.PRH_boundary_text' ),
( 831, 'dbo.PRH_complement' ),
( 832, 'dbo.PRH_complement_text' ),
( 833, 'dbo.PRH_item_link' ),
( 834, 'dbo.PRH_layout_link' ),
( 835, 'dbo.PRH_list_column_link' ),
( 836, 'dbo.PRH_period_type' ),
( 837, 'dbo.PRH_PRHC_link' ),
( 838, 'dbo.PRH_totalizator_link' ),
( 839, 'dbo.Price_code' ),
( 840, 'dbo.Price_code_text' ),
( 841, 'dbo.Price_element' ),
( 842, 'dbo.Price_element_text' ),
( 843, 'dbo.Price_modifier' ),
( 844, 'dbo.Price_type' ),
( 845, 'dbo.Price_type_text' ),
( 846, 'dbo.Print_style' ),
( 847, 'dbo.Print_style_text' ),
( 848, 'dbo.Pro_svc_psbl_answer' ),
( 849, 'dbo.Pro_svc_psbl_answer_text' ),
( 850, 'dbo.Pro_svc_question' ),
( 851, 'dbo.Pro_svc_question_text' ),
( 852, 'dbo.Pro_svc_received_answer' ),
( 853, 'dbo.Pro_svc_session' ),
( 854, 'dbo.Pro_svc_session_answer' ),
( 855, 'dbo.Process_document' ),
( 856, 'dbo.Process_document_link' ),
( 857, 'dbo.Process_header' ),
( 858, 'dbo.Process_line' ),
( 859, 'dbo.Process_line_antecedence' ),
( 860, 'dbo.Process_line_option' ),
( 861, 'dbo.Process_option' ),
( 862, 'dbo.Process_overlap_header' ),
( 863, 'dbo.Process_overlap_line' ),
( 864, 'dbo.Process_overlap_text' ),
( 865, 'dbo.Process_revision' ),
( 866, 'dbo.Process_sub_contractor' ),
( 867, 'dbo.Product_line' ),
( 868, 'dbo.Product_line_text' ),
( 869, 'dbo.Production_time' ),
( 870, 'dbo.Profit_cost_center' ),
( 871, 'dbo.Profit_cost_center_key' ),
( 872, 'dbo.Profit_cost_center_text' ),
( 873, 'dbo.Profit_cost_type' ),
( 874, 'dbo.Profit_cost_type_key' ),
( 875, 'dbo.Profit_cost_type_text' ),
( 876, 'dbo.Project' ),
( 877, 'dbo.Project_address_link' ),
( 878, 'dbo.Project_criteria' ),
( 879, 'dbo.Project_entry' ),
( 880, 'dbo.Project_key' ),
( 881, 'dbo.Project_resource' ),
( 882, 'dbo.Project_status_history' ),
( 883, 'dbo.Project_structure' ),
( 884, 'dbo.Project_structure_text' ),
( 885, 'dbo.Project_weighting' ),
( 886, 'dbo.PROL_column_link' ),
( 887, 'dbo.Prospection' ),
( 888, 'dbo.Prospection_amount' ),
( 889, 'dbo.Prospection_criteria' ),
( 890, 'dbo.Prospection_reason' ),
( 891, 'dbo.PRPET_conversion' ),
( 892, 'dbo.QRCodes' ),
( 893, 'dbo.Quantity_formula_detail' ),
( 894, 'dbo.Quantity_formula_master' ),
( 895, 'dbo.Quantity_formula_master_txt' ),
( 896, 'dbo.RAFAM_action_monitor' ),
( 897, 'dbo.RAFAM_notification' ),
( 898, 'dbo.Reason' ),
( 899, 'dbo.Reason_text' ),
( 900, 'dbo.Receipt_summary' ),
( 901, 'dbo.REG_status_history' ),
( 902, 'dbo.Registration' ),
( 903, 'dbo.Registration_booth_link' ),
( 904, 'dbo.Religion' ),
( 905, 'dbo.Religion_text' ),
( 906, 'dbo.Remark_type' ),
( 907, 'dbo.Remark_type_text' ),
( 908, 'dbo.Remedy' ),
( 909, 'dbo.Remedy_text' ),
( 910, 'dbo.Reminder_method' ),
( 911, 'dbo.Report' ),
( 912, 'dbo.Repository_update_log' ),
( 913, 'dbo.Room_category' ),
( 914, 'dbo.Room_category_text' ),
( 915, 'dbo.Salary_grade' ),
( 916, 'dbo.Salary_grade_funct_link' ),
( 917, 'dbo.Salary_grade_history' ),
( 918, 'dbo.Salary_grade_text' ),
( 919, 'dbo.Sales_rep_address_list' ),
( 920, 'dbo.Sales_representative' ),
( 921, 'dbo.Sales_tax_code' ),
( 922, 'dbo.Sales_tax_code_text' ),
( 923, 'dbo.Sales_tax_rate' ),
( 924, 'dbo.Sector' ),
( 925, 'dbo.Sector_text' ),
( 926, 'dbo.Security_custody' ),
( 927, 'dbo.Security_group' ),
( 928, 'dbo.Security_group_text' ),
( 929, 'dbo.Serial_number' ),
( 930, 'dbo.Serial_number_history' ),
( 931, 'dbo.Serial_number_status' ),
( 932, 'dbo.Serial_number_status_text' ),
( 933, 'dbo.Shipping_method' ),
( 934, 'dbo.Shipping_method_text' ),
( 935, 'dbo.Signature_schema' ),
( 936, 'dbo.Signature_schema_detail' ),
( 937, 'dbo.Signature_schema_text' ),
( 938, 'dbo.Signboard' ),
( 939, 'dbo.Signboard_contract' ),
( 940, 'dbo.Signboard_DL_link' ),
( 941, 'dbo.Signboard_location' ),
( 942, 'dbo.Signboard_location_hist' ),
( 943, 'dbo.Signboard_per_status_hist' ),
( 944, 'dbo.Signboard_periodicity' ),
( 945, 'dbo.Signboard_type' ),
( 946, 'dbo.Signboard_type_text' ),
( 947, 'dbo.SP_catalog' ),
( 948, 'dbo.SP_catalog_text' ),
( 949, 'dbo.SQL_connection' ),
( 950, 'dbo.SSSI_OU_link' ),
( 951, 'dbo.Standard_cost_param' ),
( 952, 'dbo.Standard_cost_rate' ),
( 953, 'dbo.Standard_text' ),
( 954, 'dbo.Standard_text_text' ),
( 955, 'dbo.Standard_text_type' ),
( 956, 'dbo.Standard_text_type_text' ),
( 957, 'dbo.Standard_unit_conversion' ),
( 958, 'dbo.STASD_event' ),
( 959, 'dbo.Statistic' ),
( 960, 'dbo.Statistic_OU_link' ),
( 961, 'dbo.Status' ),
( 962, 'dbo.Status_schema' ),
( 963, 'dbo.Status_schema_detail' ),
( 964, 'dbo.Status_schema_header' ),
( 965, 'dbo.Status_schema_header_text' ),
( 966, 'dbo.Status_text' ),
( 967, 'dbo.Status_type' ),
( 968, 'dbo.Status_type_text' ),
( 969, 'dbo.Stock_trans_effective_cost' ),
( 970, 'dbo.Stock_trans_type' ),
( 971, 'dbo.Stock_trans_type_text' ),
( 972, 'dbo.Stock_transaction' ),
( 973, 'dbo.Stock_transaction_master' ),
( 974, 'dbo.STT_PD_link' ),
( 975, 'dbo.Sub_contractor_terms' ),
( 976, 'dbo.SUB_RAFAM_parameter' ),
( 977, 'dbo.Subsidiary' ),
( 978, 'dbo.Supplier' ),
( 979, 'dbo.Surplus_header' ),
( 980, 'dbo.Surplus_header_text' ),
( 981, 'dbo.Surplus_line' ),
( 982, 'dbo.Swiss_AVS_structure' ),
( 983, 'dbo.Swiss_bank_clearing' ),
( 984, 'dbo.Swiss_customs_detail' ),
( 985, 'dbo.Swiss_EMCH_supplement' ),
( 986, 'dbo.Swiss_payroll_parameters' ),
( 987, 'dbo.Symptom' ),
( 988, 'dbo.Symptom_text' ),
( 989, 'dbo.sysdiagrams' ),
( 990, 'dbo.System_email' ),
( 991, 'dbo.System_site' ),
( 992, 'dbo.System_site_link_auth' ),
( 993, 'dbo.System_site_SQL_instance' ),
( 994, 'dbo.System_site_SUB_link' ),
( 995, 'dbo.System_site_transfer' ),
( 996, 'dbo.Tariff' ),
( 997, 'dbo.Tariff_type' ),
( 998, 'dbo.Tariff_type_text' ),
( 999, 'dbo.Task' ),
( 1000, 'dbo.Task_address_link' )

INSERT INTO @usedTablesArizona ([id], [tblName])
VALUES
( 1001, 'dbo.Task_budget_detail' ),
( 1002, 'dbo.Task_criteria' ),
( 1003, 'dbo.Task_key' ),
( 1004, 'dbo.Task_progress_history' ),
( 1005, 'dbo.Task_resource' ),
( 1006, 'dbo.Task_status_history' ),
( 1007, 'dbo.TC_authorized_value' ),
( 1008, 'dbo.Tech_criteria_value' ),
( 1009, 'dbo.Tech_criteria_value_text' ),
( 1010, 'dbo.Technical_criteria' ),
( 1011, 'dbo.Technical_criteria_text' ),
( 1012, 'dbo.Telecom' ),
( 1013, 'dbo.Terms_schema_detail' ),
( 1014, 'dbo.Terms_schema_header' ),
( 1015, 'dbo.Terms_schema_header_text' ),
( 1016, 'dbo.Time_period' ),
( 1017, 'dbo.Time_period_master' ),
( 1018, 'dbo.Time_period_master_text' ),
( 1019, 'dbo.Time_period_text' ),
( 1020, 'dbo.Time_sheet_rate' ),
( 1021, 'dbo.Time_sheet_special_rate' ),
( 1022, 'dbo.Time_table_schema' ),
( 1023, 'dbo.Time_table_schema_date' ),
( 1024, 'dbo.Time_table_schema_detail' ),
( 1025, 'dbo.Time_table_schema_history' ),
( 1026, 'dbo.Time_table_schema_text' ),
( 1027, 'dbo.Time_table_type' ),
( 1028, 'dbo.Time_table_type_detail' ),
( 1029, 'dbo.Time_table_type_history' ),
( 1030, 'dbo.Time_table_type_text' ),
( 1031, 'dbo.Title' ),
( 1032, 'dbo.Title_text' ),
( 1033, 'dbo.TK_pre_cost_entry_link' ),
( 1034, 'dbo.Transaction_header' ),
( 1035, 'dbo.Transaction_line' ),
( 1036, 'dbo.TriaScan_Document' ),
( 1037, 'dbo.Unit_code' ),
( 1038, 'dbo.Unit_code_text' ),
( 1039, 'dbo.User_card' ),
( 1040, 'dbo.Variable_price' ),
( 1041, 'dbo.VAT_period' ),
( 1042, 'dbo.VAT_period_text' ),
( 1043, 'dbo.Vehicle' ),
( 1044, 'dbo.Vehicle_text' ),
( 1045, 'dbo.Vendor_managed_inv_text' ),
( 1046, 'dbo.Vendor_managed_inventory' ),
( 1047, 'dbo.VIP_card' ),
( 1048, 'dbo.VIP_card_issue_type' ),
( 1049, 'dbo.VIP_card_type' ),
( 1050, 'dbo.VIP_card_type_link' ),
( 1051, 'dbo.VIP_card_type_text' ),
( 1052, 'dbo.VIP_deny_discount' ),
( 1053, 'dbo.VIPCT_marketing_type' ),
( 1054, 'dbo.Web_service_access' ),
( 1055, 'dbo.Web_service_access_text' ),
( 1056, 'dbo.Weekly_schema_detail' ),
( 1057, 'dbo.Weekly_schema_header' ),
( 1058, 'dbo.WKOP_assignment' ),
( 1059, 'dbo.WKOP_external_reference' ),
( 1060, 'dbo.WKOP_planning' ),
( 1061, 'dbo.WKOP_planning_header' ),
( 1062, 'dbo.WKPA_capacity' ),
( 1063, 'dbo.Work_center' ),
( 1064, 'dbo.Work_center_text' ),
( 1065, 'dbo.Work_location' ),
( 1066, 'dbo.Work_location_text' ),
( 1067, 'dbo.Work_order' ),
( 1068, 'dbo.Work_order_BOM_location' ),
( 1069, 'dbo.Work_order_cost' ),
( 1070, 'dbo.Work_order_process' ),
( 1071, 'dbo.Work_order_process_qty' ),
( 1072, 'dbo.Work_order_status_history' ),
( 1073, 'dbo.Work_permit' ),
( 1074, 'dbo.Work_sheet_header' ),
( 1075, 'dbo.Work_type' ),
( 1076, 'dbo.Work_type_text' ),
( 1077, 'dbo.Workplace' ),
( 1078, 'dbo.Workplace_text' ),
( 1079, 'dbo.WSA_connection' ),
( 1080, 'dbo.Zip_code' ),
( 1081, 'dbo.ZIP_distance_chart' ),
( 1082, 'dbo.ZZ_DVE_MON_TRACKING' ),
( 1083, 'del.CCI_address' ),
( 1084, 'del.CCI_address_key' ),
( 1085, 'del.CCI_ATA' ),
( 1086, 'del.CCI_document_header' ),
( 1087, 'del.CCI_item' ),
( 1088, 'del.CCI_PD_deposit_code' ),
( 1089, 'del.CCI_reminder' ),
( 1090, 'dnz.ItemSearch' ),
( 1091, 'repl.ArticleColumnException' ),
( 1092, 'repl.ArticleConfiguration' ),
( 1093, 'repl.PublicationConfiguration' ),
( 1094, 'upd.Change_tracking_monitor' ),
( 1095, 'upd.IA_IndexAlignementActions' )


SELECT SCHEMA_NAME(t.[schema_id])+'.'+t.[name] AS tableName, 
    CASE WHEN u.id IS NULL THEN 0 ELSE 1 END AS isUsed
FROM arizona.sys.tables t
    LEFT JOIN @usedTablesArizona u ON u.[tblName] = SCHEMA_NAME(t.[schema_id])+'.'+t.[name]
WHERE t.[type_desc] = 'USER_TABLE' --only tables
and  SCHEMA_NAME(t.[schema_id]) = 'dbo'
and t.name not like 'TT%'
ORDER BY [isUsed], SCHEMA_NAME(t.[schema_id]), t.[name]

