# Importa configurazione
. "$PSScriptRoot\conf.ps1"

$scriptName = $MyInvocation.MyCommand.Name
$logFile = Join-Path $env:logDir "${scriptName}.log"

"Start pulizia stored procedure $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')" | Out-File -FilePath $logFile

# Connessione al database
$connectionString = "Server=$env:dbHostOutput;Database=$env:dbName;User Id=$env:dbUser;Password=$env:dbPassword;"
$connection = New-Object System.Data.SqlClient.SqlConnection($connectionString)

try {
    $connection.Open()

    # SELECT concat('$procedures += [PSCustomObject]@{ SchemaName = "',SCHEMA_NAME(schema_id),'"; ProcedureName = "'
    # ,name,'"; FullName = "[',SCHEMA_NAME(schema_id),'].[',name,']" }')
    # FROM sys.procedures
    # where SCHEMA_NAME(schema_id) in ('dbo','C6Mart','C6MartPeriodico','C6MartPeriodicoImmobiliare','C6Staging','C6StagingPeriodico','C6StagingPeriodicoImmobiliare')
    # ORDER BY 1

    $procedures = @()
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_ANAG_SELF_20181129_PreMioFoglio"; FullName = "[C6Mart].[DM_ANAG_SELF_20181129_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_ANAG_SELF_BK_eligoTitoli"; FullName = "[C6Mart].[DM_ANAG_SELF_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_MIFID_20181004"; FullName = "[C6Mart].[DM_MIFID_20181004]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_PATRIMONIO_BF_old"; FullName = "[C6Mart].[DM_PATRIMONIO_BF_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_PopolaContratti_20161026"; FullName = "[C6Mart].[DM_PopolaContratti_20161026]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_PopolaContratti_old240213"; FullName = "[C6Mart].[DM_PopolaContratti_old240213]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_RISCHIO_AGGREGATO_20181003"; FullName = "[C6Mart].[DM_RISCHIO_AGGREGATO_20181003]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_RISCHIO_AGGREGATO_old"; FullName = "[C6Mart].[DM_RISCHIO_AGGREGATO_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_STRUTTURA_RETE_20160427"; FullName = "[C6Mart].[DM_STRUTTURA_RETE_20160427]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_STRUTTURA_RETE_20161024"; FullName = "[C6Mart].[DM_STRUTTURA_RETE_20161024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "DM_TEST_QUALITY_20181003"; FullName = "[C6Mart].[DM_TEST_QUALITY_20181003]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_C6_S_Generator_AND"; FullName = "[C6Mart].[GESTIONE_C6_S_Generator_AND]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_C6_S_Generator_bkp_20250228_Pre_ESG2024"; FullName = "[C6Mart].[GESTIONE_C6_S_Generator_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_C6_S_Generator_EN"; FullName = "[C6Mart].[GESTIONE_C6_S_Generator_EN]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_C6_S_Generator_OLD"; FullName = "[C6Mart].[GESTIONE_C6_S_Generator_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_EMAIL_DA_INVIARE.test_e"; FullName = "[C6Mart].[GESTIONE_SELECT_EMAIL_DA_INVIARE.test_e]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_EMAIL_DA_INVIARE_20190802"; FullName = "[C6Mart].[GESTIONE_SELECT_EMAIL_DA_INVIARE_20190802]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_EMAIL_DA_INVIARE_CU"; FullName = "[C6Mart].[GESTIONE_SELECT_EMAIL_DA_INVIARE_CU]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_EMAIL_DA_INVIARE_new"; FullName = "[C6Mart].[GESTIONE_SELECT_EMAIL_DA_INVIARE_new]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_TEST_NEW"; FullName = "[C6Mart].[GESTIONE_SELECT_FTP_INVIATI_TEST_NEW]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_LETTERE_DA_INVIARE_Rosaspina"; FullName = "[C6Mart].[GESTIONE_SELECT_LETTERE_DA_INVIARE_Rosaspina]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A.TEMP"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A.TEMP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_20180309_PreServizi"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_20180309_PreServizi]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_20180928_OLD"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_20180928_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_TEST"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_TEST]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_TEST_EN_P"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_A_TEST_EN_P]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_orig"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_orig]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_NA_TEST_ANDREA"; FullName = "[C6Mart].[GESTIONE_SELECT_PDF_GETDATATHREADS_NA_TEST_ANDREA]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D_S178CasiParticolari_20181220"; FullName = "[C6Mart].[PL_D_S178CasiParticolari_20181220]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D2_S152Patrimonio_20190107_ProQuota"; FullName = "[C6Mart].[PL_D2_S152Patrimonio_20190107_ProQuota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D2_S152Patrimonio_20190111"; FullName = "[C6Mart].[PL_D2_S152Patrimonio_20190111]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D2_S155PatrimonioImmobiliare_20190107_ProQuota"; FullName = "[C6Mart].[PL_D2_S155PatrimonioImmobiliare_20190107_ProQuota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D2_S155PatrimonioImmobiliare_20190111"; FullName = "[C6Mart].[PL_D2_S155PatrimonioImmobiliare_20190111]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D2_S157ConfrontoPiramidi_BK_eligoTitoli"; FullName = "[C6Mart].[PL_D2_S157ConfrontoPiramidi_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_D2_S160DettaglioProdottiBF_BK_eligoTitoli"; FullName = "[C6Mart].[PL_D2_S160DettaglioProdottiBF_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_FD181PreferenzeESG:bkp_pre_ESG2024"; FullName = "[C6Mart].[PL_FD181PreferenzeESG:bkp_pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S102DistribuzioneRischioCredito_OLD"; FullName = "[C6Mart].[PL_S102DistribuzioneRischioCredito_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S102DistribuzioneRischioCredito_OLD2"; FullName = "[C6Mart].[PL_S102DistribuzioneRischioCredito_OLD2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S181PreferenzeESG_bkp_20250228_Pre_ESG2024"; FullName = "[C6Mart].[PL_S181PreferenzeESG_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S182DettaglioProdottiESG_bkp_20250228_Pre_ESG2024"; FullName = "[C6Mart].[PL_S182DettaglioProdottiESG_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S185UCaratteristicheESG_bkp_20250228_Pre_ESG2024"; FullName = "[C6Mart].[PL_S185UCaratteristicheESG_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S43DettaglioProdottiBF_BK_eligoTitoli"; FullName = "[C6Mart].[PL_S43DettaglioProdottiBF_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PL_S43LineaSelfBF_20181214_PreMioFoglio"; FullName = "[C6Mart].[PL_S43LineaSelfBF_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "PROM_TuttiIPortafogli_old"; FullName = "[C6Mart].[PROM_TuttiIPortafogli_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_AggiornaFlagContratto_20161026"; FullName = "[C6Mart].[RP_AggiornaFlagContratto_20161026]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_ANAG_CC_20170421"; FullName = "[C6Mart].[RP_DM_ANAG_CC_20170421]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_ESG_ANAG_METRICHE_bkp_Pre_ESG4"; FullName = "[C6Mart].[RP_DM_ESG_ANAG_METRICHE_bkp_Pre_ESG4]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_GestioneEmail_20161028"; FullName = "[C6Mart].[RP_DM_GestioneEmail_20161028]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_PATRIMONIO_ALTRO_20150825"; FullName = "[C6Mart].[RP_DM_PATRIMONIO_ALTRO_20150825]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_PATRIMONIO_ALTRO_20160615"; FullName = "[C6Mart].[RP_DM_PATRIMONIO_ALTRO_20160615]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_PATRIMONIO_BF_20180201"; FullName = "[C6Mart].[RP_DM_PATRIMONIO_BF_20180201]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_PATRIMONIO_IMMOBILIARE_20190107_ProQuota"; FullName = "[C6Mart].[RP_DM_PATRIMONIO_IMMOBILIARE_20190107_ProQuota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_PATRIMONIO_TERZI_20180219"; FullName = "[C6Mart].[RP_DM_PATRIMONIO_TERZI_20180219]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_PATRIMONIO_TERZI_luca"; FullName = "[C6Mart].[RP_DM_PATRIMONIO_TERZI_luca]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_2011026"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_2011026]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20160315"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20160315]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_201700302_ripristino_del_20170127"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_201700302_ripristino_del_20170127]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20170127"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20170127]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20170322"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20170322]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20170524"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20170524]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20170607_mifid"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20170607_mifid]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20170613"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20170613]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20170727_VarAdeguatezza"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20170727_VarAdeguatezza]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20171113"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20171113]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20171205"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20171205]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20171222"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20171222]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20180102"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20180102]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20180103"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20180103]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20180104"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20180104]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20181003"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20181003]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_DM_POPOLACONTRATTI_20181127"; FullName = "[C6Mart].[RP_DM_POPOLACONTRATTI_20181127]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_PROM_TuttiIPortafogli_20180612_NewMotorePrometeia"; FullName = "[C6Mart].[RP_PROM_TuttiIPortafogli_20180612_NewMotorePrometeia]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "RP_PROM_TuttiIPortafogli_20180612_PreMotorePrometeia"; FullName = "[C6Mart].[RP_PROM_TuttiIPortafogli_20180612_PreMotorePrometeia]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "SRV_CHECK_C6_GIORNALIERO_20161026"; FullName = "[C6Mart].[SRV_CHECK_C6_GIORNALIERO_20161026]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "SRV_CHECK_C6_GIORNALIERO_20161026_2"; FullName = "[C6Mart].[SRV_CHECK_C6_GIORNALIERO_20161026_2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "SRV_CHECK_C6_GIORNALIERO_AND"; FullName = "[C6Mart].[SRV_CHECK_C6_GIORNALIERO_AND]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzPL_D_S157ConfrontoPiramidi"; FullName = "[C6Mart].[zzzPL_D_S157ConfrontoPiramidi]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzPL_D_S170RischioDiversificazione"; FullName = "[C6Mart].[zzzPL_D_S170RischioDiversificazione]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzPL_D2_S150Anagrafica"; FullName = "[C6Mart].[zzzPL_D2_S150Anagrafica]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzPL_D2_S168TabellaEmittenti"; FullName = "[C6Mart].[zzzPL_D2_S168TabellaEmittenti]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzQUALITY_CARATTERIVCONTRATTI"; FullName = "[C6Mart].[zzzQUALITY_CARATTERIVCONTRATTI]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzRP_DM_GestioneEmailNA"; FullName = "[C6Mart].[zzzRP_DM_GestioneEmailNA]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzSRV_CHECK_C6_GIORNALIERO_AND"; FullName = "[C6Mart].[zzzSRV_CHECK_C6_GIORNALIERO_AND]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzzPL_D_S157ConfrontoPiramidi"; FullName = "[C6Mart].[zzzzPL_D_S157ConfrontoPiramidi]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Mart"; ProcedureName = "zzzzRP_SRV_CHECK_C6_GIORNALIERO"; FullName = "[C6Mart].[zzzzRP_SRV_CHECK_C6_GIORNALIERO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "CercaCaratteriAnomali_20150205"; FullName = "[C6MartPeriodico].[CercaCaratteriAnomali_20150205]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_ANAG_SELF_20181214_PreMioFoglio"; FullName = "[C6MartPeriodico].[DM_ANAG_SELF_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_CAPPROT_20171129"; FullName = "[C6MartPeriodico].[DM_CAPPROT_20171129]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_CAPPROT_BKP"; FullName = "[C6MartPeriodico].[DM_CAPPROT_BKP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_DettaglioMovimenti_20160913"; FullName = "[C6MartPeriodico].[DM_DettaglioMovimenti_20160913]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_DettaglioMovimenti_old"; FullName = "[C6MartPeriodico].[DM_DettaglioMovimenti_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_MIFID_BKP_20231114_PRE_RAFFORZAMENTO"; FullName = "[C6MartPeriodico].[DM_MIFID_BKP_20231114_PRE_RAFFORZAMENTO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_RISCHIO_AGGREGATO_20180627_preNewInd"; FullName = "[C6MartPeriodico].[DM_RISCHIO_AGGREGATO_20180627_preNewInd]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_RISCHIO_AGGREGATO_old"; FullName = "[C6MartPeriodico].[DM_RISCHIO_AGGREGATO_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_RISCHIO_AGGREGATO_OLD2"; FullName = "[C6MartPeriodico].[DM_RISCHIO_AGGREGATO_OLD2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "DM_SCADENZE_pre_selective_luca"; FullName = "[C6MartPeriodico].[DM_SCADENZE_pre_selective_luca]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Genera_Cruscotto_ContrattoSei_20170407.SAVE"; FullName = "[C6MartPeriodico].[Genera_Cruscotto_ContrattoSei_20170407.SAVE]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_C6_S_Generator_OLD"; FullName = "[C6MartPeriodico].[GESTIONE_C6_S_Generator_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_INSERT_ELABORAZIONE_ZIP_20170328"; FullName = "[C6MartPeriodico].[GESTIONE_INSERT_ELABORAZIONE_ZIP_20170328]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_INSERT_PDF_FTP_04082015"; FullName = "[C6MartPeriodico].[GESTIONE_INSERT_PDF_FTP_04082015]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Gestione_ProdottiProtetti_20171215"; FullName = "[C6MartPeriodico].[Gestione_ProdottiProtetti_20171215]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_EMAIL_DA_INVIARE_20160913"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_EMAIL_DA_INVIARE_20160913]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_EMAIL_DA_INVIARE_bk"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_EMAIL_DA_INVIARE_bk]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_DA_INVIARE_20170413_b4_NewZipFtpProcess"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_DA_INVIARE_20170413_b4_NewZipFtpProcess]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_DA_INVIARE_20170712_b4_OrderedByCAP"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_DA_INVIARE_20170712_b4_OrderedByCAP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_20180214_bonifica"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_20180214_bonifica]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_20180308_PreIDX2"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_20180308_PreIDX2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_20180420"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_20180420]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_20240225"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_20240225]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_INCLUDINGFILENAME_20180308_PreIDX2"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_INCLUDINGFILENAME_20180308_PreIDX2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_INCLUDINGFILENAME_20180420"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_INCLUDINGFILENAME_20180420]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_FTP_INVIATI_prova_20141223"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_FTP_INVIATI_prova_20141223]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_LETTERE_DA_INVIARE_Rosaspina"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_LETTERE_DA_INVIARE_Rosaspina]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_DA_Francesco"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_DA_Francesco]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_luca"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_luca]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_onDemand_Adriano"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_onDemand_Adriano]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_onDemand_Adriano_PROVAPROF"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_onDemand_Adriano_PROVAPROF]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_onDemand_Luca"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_onDemand_Luca]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_Pino"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CAMPIONE_Pino]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_01"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_01]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_02"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_02]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_03"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_03]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_04"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_04]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_05"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_05]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_06"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_06]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_07"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_07]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_08"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_08]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_09"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_09]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_1"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_1]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_10"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_10]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_11"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_11]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_12"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_12]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_13"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_13]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_14"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_14]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_15"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_15]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_16"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_16]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_17"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_17]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_18"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_18]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_19"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_19]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_2"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_20"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_20]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_21"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_21]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_22"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_22]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_23"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_23]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_24"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_24]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_25"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_CRUSCOTTO_25]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_PDF_GETDATATHREADS_PartiteViaggianti_OnDemand_Adriano"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_PDF_GETDATATHREADS_PartiteViaggianti_OnDemand_Adriano]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_REPORTS_ERRATACORRIGE_test"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_REPORTS_ERRATACORRIGE_test]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_SELECT_S80_EVOLUZIONE_CTV_dopoMart"; FullName = "[C6MartPeriodico].[GESTIONE_SELECT_S80_EVOLUZIONE_CTV_dopoMart]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_UPDATE_ELABORAZIONE_ZIP_20170328"; FullName = "[C6MartPeriodico].[GESTIONE_UPDATE_ELABORAZIONE_ZIP_20170328]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "GESTIONE_UPDATE_ZIP_COPY"; FullName = "[C6MartPeriodico].[GESTIONE_UPDATE_ZIP_COPY]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_20180604_PreMifid2"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_20180604_PreMifid2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_20180927_PreOttimizzazione"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_20180927_PreOttimizzazione]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_20181214_PreMioFoglio"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_85"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_85]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_bck201204"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_bck201204]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_BK_eligoTitoli"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_AreeMonitorate_bkup_20120101"; FullName = "[C6MartPeriodico].[PL_AreeMonitorate_bkup_20120101]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D_S178CasiParticolari_20181220"; FullName = "[C6MartPeriodico].[PL_D_S178CasiParticolari_20181220]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D_S178CasiParticolari_BKP_20231114_PRE_RAFFORZAMENTO"; FullName = "[C6MartPeriodico].[PL_D_S178CasiParticolari_BKP_20231114_PRE_RAFFORZAMENTO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D_S178CasiParticolari_old"; FullName = "[C6MartPeriodico].[PL_D_S178CasiParticolari_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D_S180ProdottiComplessitaAlta_20180715"; FullName = "[C6MartPeriodico].[PL_D_S180ProdottiComplessitaAlta_20180715]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S150Anagrafica_BkUpParall"; FullName = "[C6MartPeriodico].[PL_D2_S150Anagrafica_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S152Patrimonio_20190225__ori"; FullName = "[C6MartPeriodico].[PL_D2_S152Patrimonio_20190225__ori]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S152Patrimonio_20190225_preProquota"; FullName = "[C6MartPeriodico].[PL_D2_S152Patrimonio_20190225_preProquota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S155PatrimonioImmobiliare_20190225_preProquota"; FullName = "[C6MartPeriodico].[PL_D2_S155PatrimonioImmobiliare_20190225_preProquota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S155PatrimonioImmobiliare_20190502_ProQuota"; FullName = "[C6MartPeriodico].[PL_D2_S155PatrimonioImmobiliare_20190502_ProQuota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S157ConfrontoPiramidi_BK_eligoTitoli"; FullName = "[C6MartPeriodico].[PL_D2_S157ConfrontoPiramidi_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S157ConfrontoPiramidi_BkUpParall"; FullName = "[C6MartPeriodico].[PL_D2_S157ConfrontoPiramidi_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S157ConfrontoPiramidi_testFc"; FullName = "[C6MartPeriodico].[PL_D2_S157ConfrontoPiramidi_testFc]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S160DettaglioProdottiBF_BK_20151222"; FullName = "[C6MartPeriodico].[PL_D2_S160DettaglioProdottiBF_BK_20151222]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S160DettaglioProdottiBF_BK_eligoTitoli"; FullName = "[C6MartPeriodico].[PL_D2_S160DettaglioProdottiBF_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S168TabellaEmittenti_BK_20151222"; FullName = "[C6MartPeriodico].[PL_D2_S168TabellaEmittenti_BK_20151222]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_D2_S169RischiomercatoRischiocredito_20180716"; FullName = "[C6MartPeriodico].[PL_D2_S169RischiomercatoRischiocredito_20180716]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_FD181PreferenzeESG_BKP_20250305_PreESG2024"; FullName = "[C6MartPeriodico].[PL_FD181PreferenzeESG_BKP_20250305_PreESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S132ProfiloRischioAdeguatezza_BkUpParall"; FullName = "[C6MartPeriodico].[PL_MP_S132ProfiloRischioAdeguatezza_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S133AreeBisognoPrincProd_BK_eligoTitoli"; FullName = "[C6MartPeriodico].[PL_MP_S133AreeBisognoPrincProd_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S133AreeBisognoPrincProd_BkUpParall"; FullName = "[C6MartPeriodico].[PL_MP_S133AreeBisognoPrincProd_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S140AnalisiRisparmioCharts_20190123_PreLIGHT"; FullName = "[C6MartPeriodico].[PL_MP_S140AnalisiRisparmioCharts_20190123_PreLIGHT]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S142DistibuzionePerRating_20240803"; FullName = "[C6MartPeriodico].[PL_MP_S142DistibuzionePerRating_20240803]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S143DistibuzionePerEmittente_20240803"; FullName = "[C6MartPeriodico].[PL_MP_S143DistibuzionePerEmittente_20240803]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S145DistibuzionePerTassoRendimento_20240803"; FullName = "[C6MartPeriodico].[PL_MP_S145DistibuzionePerTassoRendimento_20240803]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_MP_S148DistribuzioneAssetClass_BkUpParall"; FullName = "[C6MartPeriodico].[PL_MP_S148DistribuzioneAssetClass_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S102DistribuzioneRischioCredito_OLD"; FullName = "[C6MartPeriodico].[PL_S102DistribuzioneRischioCredito_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S103TabellaEmittenti_OLD"; FullName = "[C6MartPeriodico].[PL_S103TabellaEmittenti_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S10PatrimonioFinanziario_BkUpParall"; FullName = "[C6MartPeriodico].[PL_S10PatrimonioFinanziario_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S170LimitiMassimi_20180612"; FullName = "[C6MartPeriodico].[PL_S170LimitiMassimi_20180612]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S170LimitiMassimi_20180702"; FullName = "[C6MartPeriodico].[PL_S170LimitiMassimi_20180702]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S170LimitiMassimi_BKP_20231115_PRE_RAFFORZAMENTO"; FullName = "[C6MartPeriodico].[PL_S170LimitiMassimi_BKP_20231115_PRE_RAFFORZAMENTO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20171201_ori"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20171201_ori]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20171215"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20171215]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20171220"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20171220]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20171221"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20171221]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20180119"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20180119]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20180717_PrePre1Pre2"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20180717_PrePre1Pre2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_20190717_preFixArrotondamento"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_20190717_preFixArrotondamento]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S172ProtezioneCapitaleAreeBisogno_pktest"; FullName = "[C6MartPeriodico].[PL_S172ProtezioneCapitaleAreeBisogno_pktest]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S181PreferenzeESG_BKP_20231116_PRE_RAFFORZAMENTO"; FullName = "[C6MartPeriodico].[PL_S181PreferenzeESG_BKP_20231116_PRE_RAFFORZAMENTO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S181PreferenzeESG_bkp_20250228_Pre_ESG2024"; FullName = "[C6MartPeriodico].[PL_S181PreferenzeESG_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S182DettaglioProdottiESG_bkp_20250228_Pre_ESG2024"; FullName = "[C6MartPeriodico].[PL_S182DettaglioProdottiESG_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S184CoerenzaESG_BKP_20231013"; FullName = "[C6MartPeriodico].[PL_S184CoerenzaESG_BKP_20231013]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S185UCaratteristicheESG_bkp_20250228_Pre_ESG2024"; FullName = "[C6MartPeriodico].[PL_S185UCaratteristicheESG_bkp_20250228_Pre_ESG2024]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S25Anagrafica_BkUpParall"; FullName = "[C6MartPeriodico].[PL_S25Anagrafica_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43BISDettaglioProdottiBF_20160118"; FullName = "[C6MartPeriodico].[PL_S43BISDettaglioProdottiBF_20160118]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43BISDettaglioProdottiBF_20161215"; FullName = "[C6MartPeriodico].[PL_S43BISDettaglioProdottiBF_20161215]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43BISDettaglioProdottiBF_20161215_B"; FullName = "[C6MartPeriodico].[PL_S43BISDettaglioProdottiBF_20161215_B]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43DettaglioProdottiBF_20161215"; FullName = "[C6MartPeriodico].[PL_S43DettaglioProdottiBF_20161215]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43DettaglioProdottiBF_20161219"; FullName = "[C6MartPeriodico].[PL_S43DettaglioProdottiBF_20161219]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43DettaglioProdottiBF_BK_eligoTitoli"; FullName = "[C6MartPeriodico].[PL_S43DettaglioProdottiBF_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S43LineaSelfBF_20181214_PreMioFoglio"; FullName = "[C6MartPeriodico].[PL_S43LineaSelfBF_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S57ConfrontoPiramidi_OLD"; FullName = "[C6MartPeriodico].[PL_S57ConfrontoPiramidi_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S80Alternativa_20181214_PreMioFoglio"; FullName = "[C6MartPeriodico].[PL_S80Alternativa_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S80Alternativa_OLD"; FullName = "[C6MartPeriodico].[PL_S80Alternativa_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S80BisEvoluzioneRischio_20170413_RM_DBname"; FullName = "[C6MartPeriodico].[PL_S80BisEvoluzioneRischio_20170413_RM_DBname]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S80BisEvoluzioneRischio_BkUpParall"; FullName = "[C6MartPeriodico].[PL_S80BisEvoluzioneRischio_BkUpParall]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S83DatiRendimento_85"; FullName = "[C6MartPeriodico].[PL_S83DatiRendimento_85]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "PL_S95ProfiloDiRischio_20190204_PreMIFID2"; FullName = "[C6MartPeriodico].[PL_S95ProfiloDiRischio_20190204_PreMIFID2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S133_S157DatiPiramide_20161202"; FullName = "[C6MartPeriodico].[Popola_S133_S157DatiPiramide_20161202]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S133_S157DatiPiramide_20161214"; FullName = "[C6MartPeriodico].[Popola_S133_S157DatiPiramide_20161214]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S133_S157DatiPiramide_20170113_ORIG"; FullName = "[C6MartPeriodico].[Popola_S133_S157DatiPiramide_20170113_ORIG]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S179EmittentiConcentrazioneAlta_20180626"; FullName = "[C6MartPeriodico].[Popola_S179EmittentiConcentrazioneAlta_20180626]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S179EmittentiConcentrazioneAlta_BKP_20231115_PRE_RAFFORZAMENTO"; FullName = "[C6MartPeriodico].[Popola_S179EmittentiConcentrazioneAlta_BKP_20231115_PRE_RAFFORZAMENTO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S80BisEvoluzioneRischio_20170724_preCR_fasi1e2"; FullName = "[C6MartPeriodico].[Popola_S80BisEvoluzioneRischio_20170724_preCR_fasi1e2]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S80BisEvoluzioneRischio_20171222"; FullName = "[C6MartPeriodico].[Popola_S80BisEvoluzioneRischio_20171222]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Popola_S80BisEvoluzioneRischio_BKP_20231116_PRE_RAFFORZAMENTO"; FullName = "[C6MartPeriodico].[Popola_S80BisEvoluzioneRischio_BKP_20231116_PRE_RAFFORZAMENTO]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_ANAG_CLIENTI_20170409"; FullName = "[C6MartPeriodico].[RP_DM_ANAG_CLIENTI_20170409]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_ANAG_CLIENTI_20170409_AGENTEisNotNull"; FullName = "[C6MartPeriodico].[RP_DM_ANAG_CLIENTI_20170409_AGENTEisNotNull]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_ANAG_CLIENTI_PER_GENERAZIONE_MAIL_20190612"; FullName = "[C6MartPeriodico].[RP_DM_ANAG_CLIENTI_PER_GENERAZIONE_MAIL_20190612]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_ANAG_PRODOTTI_VALUTE_20160506_PK"; FullName = "[C6MartPeriodico].[RP_DM_ANAG_PRODOTTI_VALUTE_20160506_PK]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_CONTRATTOSEI_20170407.SAVE"; FullName = "[C6MartPeriodico].[RP_DM_CONTRATTOSEI_20170407.SAVE]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_DETTAGLIO_ASUL.20170320.OBS"; FullName = "[C6MartPeriodico].[RP_DM_DETTAGLIO_ASUL.20170320.OBS]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_DETTAGLIO_ASUL_20170123"; FullName = "[C6MartPeriodico].[RP_DM_DETTAGLIO_ASUL_20170123]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_DETTAGLIO_ASUL_luca"; FullName = "[C6MartPeriodico].[RP_DM_DETTAGLIO_ASUL_luca]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_ESG_ANAG_METRICHE_bkp_Pre_ESG4"; FullName = "[C6MartPeriodico].[RP_DM_ESG_ANAG_METRICHE_bkp_Pre_ESG4]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_MONITORAGGIO_DETTAGLIO_20161220"; FullName = "[C6MartPeriodico].[RP_DM_MONITORAGGIO_DETTAGLIO_20161220]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_MONITORAGGIO_DETTAGLIO_20171218_preRFMP"; FullName = "[C6MartPeriodico].[RP_DM_MONITORAGGIO_DETTAGLIO_20171218_preRFMP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_MONITORAGGIO_DETTAGLIO_20181213"; FullName = "[C6MartPeriodico].[RP_DM_MONITORAGGIO_DETTAGLIO_20181213]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_MONITORAGGIO_DETTAGLIO_20190112"; FullName = "[C6MartPeriodico].[RP_DM_MONITORAGGIO_DETTAGLIO_20190112]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_MONITORAGGIO_DETTAGLIO_20190314_preMioFoglio"; FullName = "[C6MartPeriodico].[RP_DM_MONITORAGGIO_DETTAGLIO_20190314_preMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_MONITORAGGIO_REPORT_20181214_PreMioFoglio"; FullName = "[C6MartPeriodico].[RP_DM_MONITORAGGIO_REPORT_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_BF"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_BF]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_BF_20170407.SAVE"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_BF_20170407.SAVE]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_BF_20170421_4b_prometeria_err_fix"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_BF_20170421_4b_prometeria_err_fix]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_BF_20171019_err"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_BF_20171019_err]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_BF_BKP_20231017"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_BF_BKP_20231017]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_IMMOBILIARE_20190205_ProQuota"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_IMMOBILIARE_20190205_ProQuota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_TERZI_20170427_Patr3"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_TERZI_20170427_Patr3]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PATRIMONIO_TERZI_20180315"; FullName = "[C6MartPeriodico].[RP_DM_PATRIMONIO_TERZI_20180315]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PIRAMIDE_MOD_20161202"; FullName = "[C6MartPeriodico].[RP_DM_PIRAMIDE_MOD_20161202]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_DM_PIRAMIDE_MOD_20170119"; FullName = "[C6MartPeriodico].[RP_DM_PIRAMIDE_MOD_20170119]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_20170409_TEST"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_20170409_TEST]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_20170410"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_20170410]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_20170410_EXCLCF"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_20170410_EXCLCF]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_20170421_EXCL_CF"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_20170421_EXCL_CF]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_20180615_NewMotorePrometeia"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_20180615_NewMotorePrometeia]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_Indicatore_20180711_AZZERARE_CTV_NEGATIVI"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_Indicatore_20180711_AZZERARE_CTV_NEGATIVI]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_Indicatore_20180719_preAzzeramentoCCNeg"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_Indicatore_20180719_preAzzeramentoCCNeg]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_Indicatore_20181018"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_Indicatore_20181018]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "RP_PROM_TuttiIPortafogli2_Indicatore_20181018_SingoloCF"; FullName = "[C6MartPeriodico].[RP_PROM_TuttiIPortafogli2_Indicatore_20181018_SingoloCF]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Segnala_Disallineamenti_20190129"; FullName = "[C6MartPeriodico].[Segnala_Disallineamenti_20190129]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "Segnala_ProdottiNonCensiti_20190129"; FullName = "[C6MartPeriodico].[Segnala_ProdottiNonCensiti_20190129]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "sp_caricaBlacklist_RFAMinus_old"; FullName = "[C6MartPeriodico].[sp_caricaBlacklist_RFAMinus_old]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SP_DQ_VerificaEmail_20161010"; FullName = "[C6MartPeriodico].[SP_DQ_VerificaEmail_20161010]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SP_PreTotaliReportGenerazioneZip_20181017"; FullName = "[C6MartPeriodico].[SP_PreTotaliReportGenerazioneZip_20181017]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_NUOVA_ELABORAZIONE_20151009"; FullName = "[C6MartPeriodico].[SRV_NUOVA_ELABORAZIONE_20151009]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_NUOVA_ELABORAZIONE_bk_test_20151014"; FullName = "[C6MartPeriodico].[SRV_NUOVA_ELABORAZIONE_bk_test_20151014]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_SELEZIONA_CAMPIONE_20160412"; FullName = "[C6MartPeriodico].[SRV_SELEZIONA_CAMPIONE_20160412]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_SELEZIONA_CAMPIONE_20161012"; FullName = "[C6MartPeriodico].[SRV_SELEZIONA_CAMPIONE_20161012]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_SELEZIONA_CAMPIONE_20180711_preExcludedList"; FullName = "[C6MartPeriodico].[SRV_SELEZIONA_CAMPIONE_20180711_preExcludedList]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_SELEZIONA_CAMPIONE_20190116_PreNewFunction"; FullName = "[C6MartPeriodico].[SRV_SELEZIONA_CAMPIONE_20190116_PreNewFunction]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodico"; ProcedureName = "SRV_SELEZIONA_CAMPIONE_20230915"; FullName = "[C6MartPeriodico].[SRV_SELEZIONA_CAMPIONE_20230915]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodicoImmobiliare"; ProcedureName = "DM_ANAG_SELF_20181214_PreMioFoglio"; FullName = "[C6MartPeriodicoImmobiliare].[DM_ANAG_SELF_20181214_PreMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6MartPeriodicoImmobiliare"; ProcedureName = "RP_DM_PATRIMONIO_IMMOBILIARE_20190205_ProQuota"; FullName = "[C6MartPeriodicoImmobiliare].[RP_DM_PATRIMONIO_IMMOBILIARE_20190205_ProQuota]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Staging"; ProcedureName = "RP_CREA_POSITIONID_2011113"; FullName = "[C6Staging].[RP_CREA_POSITIONID_2011113]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Staging"; ProcedureName = "RP_CREA_POSITIONID_CONSULENZA_20161223"; FullName = "[C6Staging].[RP_CREA_POSITIONID_CONSULENZA_20161223]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6Staging"; ProcedureName = "RP_CREA_POSITIONID_CONSULENZA_20171113_orig"; FullName = "[C6Staging].[RP_CREA_POSITIONID_CONSULENZA_20171113_orig]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "CopiaTabelleDiReplica_20190129"; FullName = "[C6StagingPeriodico].[CopiaTabelleDiReplica_20190129]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_clientiConMigrazione_20170413_RM_nomeDB"; FullName = "[C6StagingPeriodico].[RP_clientiConMigrazione_20170413_RM_nomeDB]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_CREA_POSITIONID_CONSULENZA_20161213"; FullName = "[C6StagingPeriodico].[RP_CREA_POSITIONID_CONSULENZA_20161213]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_CREA_POSITIONID_CONSULENZA_20171204_preRFMP"; FullName = "[C6StagingPeriodico].[RP_CREA_POSITIONID_CONSULENZA_20171204_preRFMP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_CREA_POSITIONID_CONSULENZA_20190725"; FullName = "[C6StagingPeriodico].[RP_CREA_POSITIONID_CONSULENZA_20190725]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_PROM_AGGIORNA_INDICATORE_DIVERSIFICAZIONE_20180710"; FullName = "[C6StagingPeriodico].[RP_PROM_AGGIORNA_INDICATORE_DIVERSIFICAZIONE_20180710]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_APPO_CONTRATTI_OLD"; FullName = "[C6StagingPeriodico].[RP_ST_APPO_CONTRATTI_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_CREA_POSITIONID_20161213"; FullName = "[C6StagingPeriodico].[RP_ST_CREA_POSITIONID_20161213]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_CREA_POSITIONID_20171204_preRFMP"; FullName = "[C6StagingPeriodico].[RP_ST_CREA_POSITIONID_20171204_preRFMP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_CREA_POSITIONID_20190725"; FullName = "[C6StagingPeriodico].[RP_ST_CREA_POSITIONID_20190725]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_CREA_POSITIONID_BK_eligoTitoli"; FullName = "[C6StagingPeriodico].[RP_ST_CREA_POSITIONID_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_SPB_CONTR_SINTESI_20161213"; FullName = "[C6StagingPeriodico].[RP_ST_SPB_CONTR_SINTESI_20161213]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_SPB_CONTR_SINTESI_20170407.SAVE"; FullName = "[C6StagingPeriodico].[RP_ST_SPB_CONTR_SINTESI_20170407.SAVE]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_SPB_CONTR_SINTESI_20171204_preRFMP"; FullName = "[C6StagingPeriodico].[RP_ST_SPB_CONTR_SINTESI_20171204_preRFMP]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_SPB_CONTR_SINTESI_20190204_preMioFoglio"; FullName = "[C6StagingPeriodico].[RP_ST_SPB_CONTR_SINTESI_20190204_preMioFoglio]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_SPB_CONTR_SINTESI_20190725"; FullName = "[C6StagingPeriodico].[RP_ST_SPB_CONTR_SINTESI_20190725]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_ST_SPB_CONTR_SINTESI_BK_eligoTitoli"; FullName = "[C6StagingPeriodico].[RP_ST_SPB_CONTR_SINTESI_BK_eligoTitoli]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "RP_UPDATE_COMPLESSITA_20161213"; FullName = "[C6StagingPeriodico].[RP_UPDATE_COMPLESSITA_20161213]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "SRV_STORICIZZAZIONE_OLD"; FullName = "[C6StagingPeriodico].[SRV_STORICIZZAZIONE_OLD]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "test_compl_testo_sezione_adeg_PG_QPROF.rigen.20170620"; FullName = "[C6StagingPeriodico].[test_compl_testo_sezione_adeg_PG_QPROF.rigen.20170620]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "test_compl_testo_sezione_adeg_PG_QPROF_20170620"; FullName = "[C6StagingPeriodico].[test_compl_testo_sezione_adeg_PG_QPROF_20170620]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "test_compl_testo_sezione_adeg_PG_QPROF_20170620_consegnato"; FullName = "[C6StagingPeriodico].[test_compl_testo_sezione_adeg_PG_QPROF_20170620_consegnato]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "C6StagingPeriodico"; ProcedureName = "zzzRP_CREA_POSITIONID_CONSULENZA"; FullName = "[C6StagingPeriodico].[zzzRP_CREA_POSITIONID_CONSULENZA]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20160119"; FullName = "[dbo].[CREA_CAMPIONE_20160119]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20160318"; FullName = "[dbo].[CREA_CAMPIONE_20160318]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20160414"; FullName = "[dbo].[CREA_CAMPIONE_20160414]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20161216"; FullName = "[dbo].[CREA_CAMPIONE_20161216]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20170114"; FullName = "[dbo].[CREA_CAMPIONE_20170114]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20170321"; FullName = "[dbo].[CREA_CAMPIONE_20170321]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20180115_preJoinNewTab"; FullName = "[dbo].[CREA_CAMPIONE_20180115_preJoinNewTab]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20180711"; FullName = "[dbo].[CREA_CAMPIONE_20180711]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "CREA_CAMPIONE_20180921"; FullName = "[dbo].[CREA_CAMPIONE_20180921]" }
    # $procedures += [PSCustomObject]@{ SchemaName = "dbo"; ProcedureName = "srv_change_codfiscale_20161114_OLwhenQready"; FullName = "[dbo].[srv_change_codfiscale_20161114_OLwhenQready]" }
    
    # Elenco e cancellazione delle stored procedure
    foreach ($proc in $procedures) {
        $dropQuery = "DROP PROCEDURE $($proc.FullName)"
        Write-Host "Cancellazione stored procedure: $($proc.FullName)"
        "$((Get-Date -Format 'yyyy-MM-dd HH:mm:ss')) - Cancellazione: $($proc.FullName)" | Out-File -FilePath $logFile -Append
        
        # Write-Host "dropQuery: $dropQuery, connectionString: $connectionString"
        $dropCommand = New-Object System.Data.SqlClient.SqlCommand($dropQuery, $connection)
        $dropCommand.ExecuteNonQuery()
    }

    Write-Host "`nRiepilogo stored procedure cancellate:"
    $procedures | Format-Table -AutoSize
    
    "Completata la cancellazione di $($procedures.Count) stored procedure" | Out-File -FilePath $logFile -Append

} catch {
    $errorMessage = $_.Exception.Message
    Write-Host "Errore: $errorMessage" -ForegroundColor Red
    "ERRORE: $errorMessage" | Out-File -FilePath $logFile -Append
    throw
} finally {
    if ($connection.State -eq 'Open') {
        $connection.Close()
    }
}

"End $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')" | Out-File -FilePath $logFile -Append
