Menu
-->SI APPLICA A: SQL Server Database SQL di Azure Azure SQL Data Warehouse Parallel Data Warehouse APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Warehouse
Download the catalogue and request prices of Blumatica pmo By blumatica, piano di manutenzione opera e sue parti.
Questo argomento descrive come creare un piano di manutenzione con uno o più server usando la Creazione guidata piano di manutenzione in SQL Server 2017SQL Server 2017.This topic describes how to create a single or multiserver maintenance plan using the Maintenance Plan Wizard in SQL Server 2017SQL Server 2017.Tramite la Creazione guidata piano di manutenzione è possibile creare un piano di manutenzione che potrà essere regolarmente eseguito in MicrosoftMicrosoftSQL ServerSQL Server Agent.The Maintenance Plan Wizard creates a maintenance plan that MicrosoftMicrosoftSQL ServerSQL Server Agent can run on a regular basis.In questo modo è possibile eseguire a intervalli specificati varie attività di amministrazione di database, tra cui backup, controlli di integrità del database o aggiornamenti delle statistiche del database.This allows you to perform various database administration tasks, including backups, database integrity checks, or database statistics updates, at specified intervals.
Limitazioni e restrizioniLimitations and Restrictions
- Per creare un piano di manutenzione multiserver, è necessario configurare un ambiente multiserver con un server master e uno o più server di destinazione.To create a multiserver maintenance plan, you must configure a multiserver environment with one master server, and one or more target servers.È necessario creare e gestire piani di manutenzione nel server master.You must create and maintain the multiserver maintenance plans on the master server.È possibile visualizzare i piani nei server di destinazione.You can view plans on target servers.
- I membri dei ruoli db_ssisadmin e dc_admin possono essere in grado di elevare i privilegi a sysadmin.Members of the db_ssisadmin and dc_admin roles may be able to elevate their privileges to sysadmin.Questa elevazione dei privilegi può verificarsi perché tali ruoli possono modificare i pacchetti di Integration ServicesIntegration Services . I pacchetti possono essere eseguiti in SQL ServerSQL Server utilizzando il contesto di sicurezza sysadmin di SQL ServerSQL Server Agent.This elevation of privilege can occur because these roles can modify Integration ServicesIntegration Services packages; these packages can be executed by SQL ServerSQL Server using the sysadmin security context of SQL ServerSQL Server Agent.
Per impedire questa elevazione dei privilegi durante l'esecuzione di piani di manutenzione, set di raccolta dati e altri pacchetti di Integration ServicesIntegration Services , configurare i processi di SQL ServerSQL Server Agent che eseguono pacchetti in modo che usino un account proxy con privilegi limitati o aggiungere solo i membri sysadmin ai ruoli db_ssisadmin e dc_admin .To guard against this elevation of privilege when running maintenance plans, data collection sets, and other Integration ServicesIntegration Services packages, configure SQL ServerSQL Server Agent jobs that run packages to use a proxy account with limited privileges or only add sysadmin members to the db_ssisadmin and dc_admin roles.
PrerequisitiPrerequisites
È necessario abilitare Opzione di configurazione del server Agent XPs.You must enable Agent XPs Server Configuration Option.
AutorizzazioniPermissions
Per creare o gestire piani di manutenzione, è necessario essere membro del ruolo predefinito del server sysadmin .To create or manage maintenance plans, you must be a member of the sysadmin fixed server role.In Esplora oggetti il nodo Piani di manutenzione viene visualizzato solo per gli utenti membri del ruolo predefinito del server sysadmin .Object Explorer only displays the Maintenance Plans node for users who are members of the sysadmin fixed server role.
Utilizzare la Creazione guidata piano di manutenzioneUse the Maintenance Plan Wizard
Avviare la procedura guidataStart the Wizard
- Espandere il server in cui si desidera creare il piano di manutenzione.Expand the server where you want to create your management plan.
- Espandere la cartella Gestione .Expand the Management folder.
- Fare clic con il pulsante destro del mouse sulla cartella Piani di manutenzione e scegliere Creazione guidata piano di manutenzione.Right-click the Maintenance Plans folder and select Maintenance Plan Wizard.
- Nella pagina Creazione guidata piano di manutenzione di SQL Server fare clic su Avanti.On the SQL Server Maintenance Plan Wizard page, click Next.
- Nella pagina Selezione proprietà piano :On the Select Plan Properties page:
- Nella casella Nome immettere il nome del piano di manutenzione che si desidera creare.In the Name box, enter the name of the maintenance plan you are creating.
- Nella casella Descrizione descrivere brevemente il piano di manutenzione.In the Description box, briefly describe your maintenance plan.
- Nell'elenco Esegui come specificare le credenziali utilizzate da Microsoft SQL Server Agent per l'esecuzione del piano di manutenzione.In the Run as list, specify the credential that Microsoft SQL Server Agent uses when executing the maintenance plan.
- Selezionare Pianificazioni separate per ogni attività o Singola pianificazione per l'intero piano o nessuna pianificazione per specificare la pianificazione periodica del piano di manutenzione.Select either Separate schedules for each task or Single schedule for the entire plan or no schedule to specify the recurring schedule of the maintenance plan.NOTA Se si seleziona Pianificazioni separate per ogni attività, è necessario eseguire i passaggi indicati in e .NOTE: If you select Separate schedules for each task, you will need to follow the steps in e.di seguito per ogni attività del piano di manutenzione.below for each task in your maintenance plan.
- Se si seleziona Singola pianificazione per l'intero piano o nessuna pianificazione, scegliere Cambiain Pianificazione.If you selected Single schedule for the entire plan or no schedule, under Schedule, click Change.
- Nella casella Nome della finestra di dialogo Nuova pianificazione processo immettere il nome della pianificazione del processo.In the New Job Schedule dialog box, in the Name box, enter the job schedule's name.
- Nell'elenco Tipo pianificazione selezionare il tipo di pianificazione:On the Schedule type list, select the type of schedule:
- Avvia automaticamente all'avvio di SQL Server AgentStart automatically when SQL Server Agent starts
- Avvia quando la CPU risulta inattivaStart whenever the CPUs become idle
- Periodica.Recurring.Si tratta della selezione predefinita.This is the default selection.
- Una voltaOne time
- Selezionare o deselezionare la casella di controllo Abilitata per abilitare o disabilitare la pianificazione.Select or clear the Enabled check box to enable or disable the schedule.
- Se si seleziona Periodica:If you select Recurring:
- In Frequenzanell'elenco Ricorrenza specificare la frequenza di occorrenza:Under Frequency, on the Occurs list, specify the frequency of occurrence:
- Se si seleziona Giornaliera, nella casella Ogni immettere la frequenza in base alla quale si ripete la pianificazione del processo nei giorni.If you select Daily, in the Recurs every box, enter how often the job schedule repeats in days.
- Se si seleziona Settimanale, nella casella Ogni immettere la frequenza in base alla quale si ripete la pianificazione del processo nelle settimane.If you select Weekly, in the Recurs every box, enter how often the job schedule repeats in weeks.Selezionare i giorni della settimana durante i quali viene eseguita la pianificazione del processo.Select the days of the week on which the job schedule is run.
- Se si seleziona Mensile, selezionare Giorno oppure Ogni.If you select Monthly, select either Day or The.
- Se si seleziona Giorno, immettere sia la data del mese in cui si desidera sia eseguita la pianificazione del processo sia la frequenza in base alla quale si ripete questa pianificazione nei mesi.If you select Day, enter both the date of the month you want the job schedule to run and how often the job schedule repeats in months.Ad esempio, se si vuole che la pianificazione del processo sia eseguita il giorno 15 del mese a mesi alterni, selezionare Giorno e immettere '15' nella prima casella e '2' nella seconda casella.For example, if you want the job schedule to run on the 15th day of the month every other month, select Day and enter '15' in the first box and '2' in the second box.Si noti che il numero più grande consentito nella seconda casella è '99'.Please note that the largest number allowed in the second box is '99'.
- Se si sceglie Ogni, selezionare il giorno specifico della settimana del mese in cui si desidera sia eseguita la pianificazione del processo e la frequenza in base alla quale si ripete questa pianificazione nei mesi.If you select The, select the specific day of the week within the month that you want the job schedule to run and how often the job schedule repeats in months.Ad esempio, se si vuole che la pianificazione del processo sia eseguita l'ultimo giorno feriale del mese a mesi alterni, selezionare Giorno, selezionare ultimo nel primo elenco e giorno feriale nel secondo elenco, quindi immettere '2' nell'ultima casella.For example, if you want the job schedule to run on the last weekday of the month every other month, select Day, select last from the first list and weekday from the second list, and then enter '2' in the last box.Nei primi due elenchi è anche possibile selezionare primo, secondo, terzo o quarto, nonché i giorni della settimana specifici, ad esempio: domenica o mercoledì.You can also select first, second, third, or fourth, as well as specific weekdays (for example: Sunday or Wednesday) from the first two lists.Si noti che il numero più grande consentito nell'ultima casella è '99'.Please note that the largest number allowed in the last box is '99'.
- In Frequenza giornalieraspecificare la frequenza in base alla quale si ripete la pianificazione del processo in quel determinato giorno:Under Daily frequency, specify how often the job schedule repeats on the day the job schedule runs:
- Se si seleziona Una sola volta alle, immettere l'ora specifica del giorno in cui deve essere eseguita la pianificazione del processo nella casella Una sola volta alle .If you select Occurs once at, enter the specific time of day when the job schedule should run in the Occurs once at box.Immettere l'ora, il minuto e il secondo del giorno, nonché AM o PM.Enter the hour, minute, and second of the day, as well as AM or PM.
- Se si seleziona Ognispecificare la frequenza in base alla quale la pianificazione del processo viene eseguita durante il giorno scelto in Frequenza.If you select Occurs every, specify how often the job schedule runs during the day chosen under Frequency.Ad esempio, se si vuole che la pianificazione del processo sia ripetuta ogni 2 ore durante il giorno scelto per questa pianificazione, selezionare Ogni, immettere '2' nella prima casella e quindi selezionare ora/e nell'elenco.For example, if you want the job schedule to repeat every 2 hours during the day that the job schedule is run, select Occurs every, enter '2' in the first box, and then select hour(s) from the list.In questo elenco è anche possibile selezionare minuto/i e secondo/i.From this list you can also select minute(s) and second(s).Si noti che il numero più grande consentito nella prima casella è '100'.Please note that the largest number allowed in the first box is '100'.Nella casella A partire dalle immettere l'ora in cui dovrebbe iniziare l'esecuzione della pianificazione del processo.In the Starting at box, enter the time that the job schedule should start running.Nella casella Fino alle immettere l'ora in cui dovrebbe terminare la ripetizione della pianificazione del processo.In the Ending at box, enter the time that the job schedule should stop repeating.Immettere l'ora, il minuto e il secondo del giorno, nonché AM o PM.Enter the hour, minute, and second of the day, as well as AM or PM.
- In Duratadi Data inizioimmettere la data in cui si desidera sia avviata l'esecuzione della pianificazione del processo.Under Duration, in Start date, enter the date that you want the job schedule to start running.Selezionare Data fine o Nessuna data di fine per indicare quando dovrebbe terminare l'esecuzione della pianificazione del processo.Select End date or No end date to indicate when the job schedule should stop running.Se si seleziona Data fineimmettere la data in cui si desidera venga terminata l'esecuzione della pianificazione del processo.If you select End date, enter the date that you want to job schedule to stop running.
- Se si seleziona Singola occorrenza, in Singola occorrenza, nella casella Data immettere la data in cui verrà eseguita la pianificazione del processo.If you select One Time, under One-time occurrence, in the Date box, enter the date that the job schedule will be run.Nella casella Ora immettere l'ora in cui verrà eseguita la pianificazione del processo.In the Time box, enter the time that the job schedule will be run.Immettere l'ora, il minuto e il secondo del giorno, nonché AM o PM.Enter the hour, minute, and second of the day, as well as AM or PM.
- In Descrizionein Riepilogoverificare che tutte le impostazioni della pianificazione del processo siano corrette.Under Summary, in Description, verify that all job schedule settings are correct.
- Fare clic su OK.Click OK.
- Scegliere Avanti.Click Next.
- Nella pagina Selezione server di destinazione selezionare i server in cui si desidera eseguire il piano di manutenzione.On the Select Target Servers page, select the servers where you want to run the maintenance plan.Questa pagina viene visualizzata solo nelle istanze di SQL ServerSQL Server configurate come server master.This page is only visible on SQL ServerSQL Server instances that are configured as master servers.NOTA Per creare un piano di manutenzione multiserver, è necessario configurare un ambiente multiserver che include un server master e uno o più server di destinazione. Il server locale deve essere inoltre configurato come server master.NOTE: To create a multiserver maintenance plan, a multiserver environment containing one master server and one or more target servers must be configured, and the local server should be configured as a master server.Negli ambienti multiserver, in questa pagina vengono visualizzati il server master (local) e tutti i server di destinazione corrispondenti.In multiserver environments, this page displays the (local) master server and all corresponding target servers.
- Nella pagina Selezione attività di manutenzione selezionare una o più attività di manutenzione da aggiungere al piano.On the Select Maintenance Tasks page, select one or more maintenance tasks to add to the plan.Dopo avere selezionato tutte le attività necessarie, scegliere Avanti.When you have selected all of the necessary tasks, click Next.NOTA Le attività selezionate determinano quali pagine è necessario completare dopo la pagina Selezione ordine attività di manutenzione.NOTE: The tasks you select here will determine which pages you will need to complete after the Select Maintenance Task Order page below.
- Nella pagina Selezione ordine attività di manutenzione selezionare un'attività e fare clic su Sposta su... o Sposta giù... per modificare il relativo ordine di esecuzione.On the Select Maintenance Task Order page, select a task and click either Move Up... or Move Down... to change its order of execution.Al termine, o dopo avere raggiunto l'ordine di attività desiderato, scegliere Avanti.When finished, or if you are satisfied with the current order of tasks, click Next.NOTA Se si seleziona Pianificazioni separate per ogni attività nella pagina Selezione proprietà piano, non sarà possibile modificare l'ordine delle attività di manutenzione in questa pagina.NOTE: If you selected Separate schedules for each task on the Select Plan Properties page above, you will not be able to change the order of the maintenance tasks on this page.
Definizione attività Controllo integrità database (CHECKDB)Define Database Check Integrity (CHECKDB)
Nella pagina Definizione attività Controlla integrità database scegliere il database o i database in cui verranno controllate l'allocazione e l'integrità strutturale degli indici e delle tabelle utente e di sistema.On the Define Database Check Integrity Task page, choose the database or databases where the allocation and structural integrity of user and system tables and indexes will be checked.Con l'esecuzione dell'istruzione
DBCC CHECKDB
Transact-SQLTransact-SQL , questa attività consente di segnalare i problemi di integrità del database in modo che possano essere gestiti successivamente da un amministratore di sistema o dal proprietario del database.By running the DBCC CHECKDB
Transact-SQLTransact-SQL statement, this task ensures that any integrity problems with the database are reported, thereby allowing them to be addressed later by a system administrator or database owner.Per altre informazioni, vedere DBCC CHECKDB (Transact-SQL)Al termine, fare clic su Avanti.For more information, see DBCC CHECKDB (Transact-SQL)When complete, click Next.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.
ElencoDatabaseDatabases list
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.
- Tutti i databaseAll databases
Viene generato un piano di manutenzione per l'esecuzione di questa attività in tutti i database di MicrosoftMicrosoftSQL ServerSQL Server , a eccezione di tempdb.Generate a maintenance plan that runs this task against all MicrosoftMicrosoftSQL ServerSQL Server databases except tempdb.
Database di sistemaSystem databases
- Viene generato un piano di manutenzione per l'esecuzione di questa attività sui database di sistema di SQL ServerSQL Server , eccetto tempdb e i database creati dall'utente.Generate a maintenance plan that runs this task against SQL ServerSQL Server system databases except tempdb and user-created databases.
Tutti i database utente (diversi da master, model, msdb e tempdb)All user databases (excluding master, model, msdb, tempdb)
- Viene generato un piano di manutenzione per l'esecuzione di questa attività su tutti i database creati dall'utente.Generate a maintenance plan that runs this task against all user-created databases.Nessuna attività di manutenzione viene eseguita sui database di sistema di SQL ServerSQL Server .No maintenance tasks are run against the SQL ServerSQL Server system databases.
I database seguentiThese databases
- Viene generato un piano di manutenzione per l'esecuzione di questa attività solo sui database selezionati.Generate a maintenance plan that runs this task against only those databases that are selected.Se si sceglie questa opzione, è necessario selezionare almeno un database nell'elenco.At least one database in the list must be selected if this option is chosen.
Casella di controlloIncludi indiciInclude indexes check box
- Viene controllata l'integrità di tutte le pagine di indice, nonché delle pagine dei dati della tabella.Check the integrity of all the index pages as well as the table data pages.
Solo fisicaPhysical only
- Limita il controllo di integrità alla struttura fisica della pagina, alle intestazioni dei record e alla coerenza di allocazione del database.Limits the check to the integrity of the physical structure of the page, record headers, and the allocation consistency of the database.L'uso di questa opzione può ridurre i tempi di esecuzione di DBCC CHECKDB in database di grandi dimensioni ed è quindi consigliato in caso di utilizzo frequente nei sistemi di produzione.Using this option may reduce run-time for DBCC CHECKDB on large databases, and is recommended for frequent use on production systems.
TablockTablock
- Consente a DBCC CHECKDB di ottenere blocchi invece di utilizzare uno snapshot di database interno,Causes DBCC CHECKDB to obtain locks instead of using an internal database snapshot.incluso un blocco esclusivo (X) sul database di breve durata.This includes a short-term exclusive (X) lock on the database.Questa opzione consente un'esecuzione più rapida di DBCC CHECKDB in database con carico di lavoro elevato, ma comporta una diminuzione del livello di concorrenza del database durante l'esecuzione del comando.Using this option may help DBCC CHECKDB run faster on a database under heavy load, but decreases the concurrency available on the database while DBCC CHECKDB is running.
Definizione attività Compatta databaseDefine Database Shrink Tasks
- Nella pagina Definizione attività Compatta database creare un'attività che tenti di ridurre le dimensioni dei database selezionati tramite l'istruzione
DBCC SHRINKDATABASE
, con l'opzioneNOTRUNCATE
oTRUNCATEONLY
.On the Define Shrink Database Task page, create a task that attempts to reduce the size of the selected databases by using theDBCC SHRINKDATABASE
statement, with either theNOTRUNCATE
orTRUNCATEONLY
option.Per altre informazioni, vedere DBCC SHRINKDATABASE (Transact-SQL).For more information, see DBCC SHRINKDATABASE (Transact-SQL).Al termine, fare clic su Avanti.When complete, click Next.AVVISOWARNING!!!!I dati spostati per ridurre un file possono essere dispersi in qualsiasi percorso disponibile nel file,Data moved to shrink a file can be scattered to any available location in the file.provocando la frammentazione dell'indice e rallentando le prestazioni di query che eseguono ricerche in un intervallo dell'indiceThis causes index fragmentation and can slow the performance of queries that search a range of the index.Per eliminare la frammentazione, valutare la possibilità di ricompilare gli indici sul file dopo la compattazione.To eliminate the fragmentation, consider rebuilding the indexes on the file after shrinking.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.ElencoDatabaseDatabases list
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.Per ulteriori informazioni sulle opzioni disponibili in questo elenco, vedere il passaggio 9.See step 9, above, for more information on the available options on this list.CasellaCompatta database quando le dimensioni superanoShrink database when it grows beyond box
Specificare le dimensioni in megabyte che causano l'esecuzione dell'attività.Specify the size in megabytes that causes the task to execute.CasellaSpazio che deve rimanere disponibile dopo la compattazioneAmount of free space to remain after shrink box
Arresta l'attività di compattazione quando lo spazio disponibile nei file del database raggiunge questa soglia (come percentuale).Stop shrinking when free space in database files reaches this size (as a percentage).Mantieni spazio liberato nei file di databaseRetain freed space in database files
Il database viene organizzato in pagine contigue, ma queste ultime non vengono deallocate, né i file del database vengono compattati.The database is condensed to contiguous pages but the pages are not deallocated, and the database files do not shrink.Utilizzare questa opzione se si prevede una nuova espansione del database e non si desidera riallocare lo spazio.Use this option if you expect the database to expand again, and you do not want to reallocate space.Con questa opzione, i file del database non verranno compattati al massimo.With this option, the database files do not shrink as much as possible.L'opzione utilizza l'istruzione NOTRUNCATE.This uses the NOTRUNCATE option.Restituisci spazio liberato al sistema operativoReturn freed space to operating system
Il database viene organizzato in pagine contigue e queste ultime vengono rilasciate al sistema operativo per essere utilizzate da altri programmi.The database is condensed to contiguous pages and the pages are released back to the operating system for use by other programs.L'opzione utilizza l'istruzione TRUNCATEONLY.This uses the TRUNCATEONLY option.Si tratta dell'opzione predefinita.This is the default option.
Definizione delle attività dell'indiceDefine the Index Tasks
- Nella pagina Definizione attività Riorganizza indice selezionare il server o i server in cui le pagine dell'indice verranno spostate in un ordine di ricerca più efficiente.On the Define Reorganize Index Task page, select the server or servers where you'll be moving index pages into a more efficient search order.In questa attività viene utilizzata l'istruzione
ALTER INDEX ... REORGANIZE
.This task uses theALTER INDEX ... REORGANIZE
statement.Per altre informazioni, vedere ALTER INDEX (Transact-SQL).For more information, see ALTER INDEX (Transact-SQL).Al termine, fare clic su Avanti.When complete, click Next.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.ElencoDatabaseDatabases list
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.Per ulteriori informazioni sulle opzioni disponibili in questo elenco, vedere il passaggio 9.See step 9, above, for more information on the available options on this list.ElencoOggettiObject list
Limitare l'elenco Selezione alla visualizzazione di tabelle, viste o entrambe.Limit the Selection list to display tables, views, or both.Questo elenco è disponibile solo se si sceglie un solo database nell'elenco Database .This list is only available if a single database is chosen from the Databases list above.ElencoSelezioneSelection list
Specificare le tabelle o gli indici su cui verrà eseguita l'attività.Specify the tables or indexes affected by this task.Questa opzione non è disponibile quando si seleziona Tabelle e viste nella casella Oggetto.Not available when Tables and Views is selected in the Object box.Casella di controlloCompatta oggetti di grandi dimensioniCompact large objects check box
Dealloca spazio per tabelle e viste, se possibile.Deallocate space for tables and views when possible.Questa opzione utilizza l'istruzioneALTER INDEX ... LOB_COMPACTION = ON
This option usesALTER INDEX ... LOB_COMPACTION = ON
. - Nella pagina Definizione attività Ricompila indice selezionare il database o i database in cui verranno creati più indici.On the Define Rebuild Index Task page, select the database or databases where you'll be re-creating multiple indexes.In questa attività viene utilizzata l'istruzione
ALTER INDEX ... REBUILD PARTITION
.This task uses theALTER INDEX ... REBUILD PARTITION
statement.Per altre informazioni, vedere ALTER INDEX (Transact-SQL)). Al termine, fare clic su Avanti.For more information, see ALTER INDEX (Transact-SQL).) When complete, click Next.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.ElencoDatabaseDatabases list
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.Per ulteriori informazioni sulle opzioni disponibili in questo elenco, vedere il passaggio 9.See step 9, above, for more information on the available options on this list.ElencoOggettiObject list
Limitare l'elenco Selezione alla visualizzazione di tabelle, viste o entrambe.Limit the Selection list to display tables, views, or both.Questo elenco è disponibile solo se si sceglie un solo database nell'elenco Database .This list is only available if a single database is chosen from the Databases list above.ElencoSelezioneSelection list
Specificare le tabelle o gli indici su cui verrà eseguita l'attività.Specify the tables or indexes affected by this task.Questa opzione non è disponibile quando si seleziona Tabelle e viste nella casella Oggetto.Not available when Tables and Views is selected in the Object box.AreaOpzioni spazio disponibileFree space options area
Contiene opzioni relative all'applicazione del fattore di riempimento a indici e tabelle.Presents options for applying fill factor to indexes and tables.Spazio libero predefinito per paginaDefault free space per page
Riorganizza le pagine mantenendo la quantità predefinita di spazio disponibile.Reorganizes the pages with the default amount of free space.Selezionando questa opzione verranno eliminati gli indici delle tabelle del database e verranno ricreati utilizzando il fattore di riempimento specificato al momento della creazione degli indici.This will drop the indexes on the tables in the database and re-create them with the fill factor that was specified when the indexes were created.Si tratta dell'opzione predefinita.This is the default option.CasellaModifica percentuale di spazio disponibile per paginaChange free space per page to box
Elimina gli indici delle tabelle del database e li ricrea utilizzando un nuovo fattore di riempimento calcolato automaticamente, riservando in tal modo la quantità di spazio disponibile specificata nelle pagine dell'indice.Drop the indexes on the tables in the database and re-create them with a new, automatically calculated fill factor, thereby reserving the specified amount of free space on the index pages.Maggiore è la percentuale, maggiore sarà la quantità di spazio disponibile riservata nelle pagine dell'indice e maggiori saranno le dimensioni dell'indice.The higher the percentage, the more free space is reserved on the index pages, and the larger the index grows.I valori validi sono compresi tra 0 e 100.Valid values are from 0 through 100.Utilizza l'opzioneFILLFACTOR
.Uses theFILLFACTOR
option.AreaOpzioni avanzateAdvanced options area
Presenta opzioni aggiuntive per l'ordinamento degli indici e la reindicizzazione.Presents additional options for sorting indexes and reindexing.Casella di controlloOrdina risultati in tempdbSort results in tempdb check box
Utilizza l'opzioneSORT_IN_TEMPDB
che determina la posizione in cui i risultati intermedi dell'ordinamento, generati durante la creazione dell'indice, vengono memorizzati temporaneamente.Uses theSORT_IN_TEMPDB
option which determines where the intermediate sort results, generated during index creation, are temporarily stored.Se non è necessario eseguire un'operazione di ordinamento o se l'ordinamento può essere eseguito in memoria, l'opzioneSORT_IN_TEMPDB
viene ignorata.If a sort operation is not required, or if the sort can be performed in memory, theSORT_IN_TEMPDB
option is ignored.Casella di controlloRiempi indicePad Index check box
Utilizza l'opzionePAD_INDEX
.Uses thePAD_INDEX
option.Casella di controlloMantieni indici online durante la reindicizzazioneKeep index online while reindexing check box
Utilizza l'opzioneONLINE
per consentire agli utenti di accedere alla tabella o ai dati dell'indice cluster sottostanti, nonché agli eventuali indici non cluster associati durante le operazioni sugli indici.Uses theONLINE
option which allows users to access the underlying table or clustered index data and any associated nonclustered indexes during index operations.La selezione di questa opzione comporta l'attivazione di opzioni aggiuntive per la ricompilazione degli indici che non consentono le ricompilazioni online: Non ricompilare indici e Ricompila indici offline.Selecting this option activates additional options for rebuilding indexes that do not allow for online rebuilds: Do not rebuild indexes and Rebuild indexes offline.La selezione di questa opzione attiva anche Bassa priorità usata, che usa l'opzioneWAIT_AT_LOW_PRIORITY
.Selecting this option also activates Low Priority Used, which uses theWAIT_AT_LOW_PRIORITY
option.Le operazioni di ricompilazione dell'indice online rimangono in attesa dei blocchi con priorità bassa perMAX_DURATION
minuti, consentendo la continuazione delle altre operazioni mentre quella di compilazione dell'indice online è in attesa.Online index rebuild operations will wait for low priority locks forMAX_DURATION
minutes, allowing other operations to proceed while the online index build operation is waiting.NOTA Le operazioni sugli indici online sono disponibili solo in alcune edizioni di SQL Server 2017SQL Server 2017.NOTE: Online index operations are not available in every edition of SQL Server 2017SQL Server 2017.Per altre informazioni, vedere Funzionalità supportate dalle edizioni di SQL Server 2016.For more information, see Features Supported by the Editions of SQL Server 2016.Casella di controlloMAXDOPMAXDOP check box
Esegue l'override dell'opzione di configurazione Massimo grado di parallelismo di sp_configure per DBCC CHECKDB.Overrides the max degree of parallelism configuration option of sp_configure for DBCC CHECKDB.Per altre informazioni, vedere DBCC CHECKDB (Transact-SQL)For more information, see DBCC CHECKDB (Transact-SQL)
Definizione attività Aggiorna statisticheDefine the Update Statistics Task
- Nella pagina Definizione attività Aggiorna statistiche definire il database o i database su cui verranno aggiornate le statistiche relative a tabelle e indici.On the Define Update Statistics Task page, define the database or databases on which table and index statistics will be updated.In questa attività viene utilizzata l'istruzione
UPDATE STATISTICS
.This task uses theUPDATE STATISTICS
statement.Per altre informazioni, vedere UPDATE STATISTICS (Transact-SQL) Al termine fare clic su AvantiFor more information, see UPDATE STATISTICS (Transact-SQL) When finished, click NextIn questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.ElencoDatabaseDatabases list
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.Per ulteriori informazioni sulle opzioni disponibili in questo elenco, vedere il passaggio 9.See step 9, above, for more information on the available options on this list.ElencoOggettiObject list
Limitare l'elenco Selezione alla visualizzazione di tabelle, viste o entrambe.Limit the Selection list to display tables, views, or both.Questo elenco è disponibile solo se si sceglie un solo database nell'elenco Database .This list is only available if a single database is chosen from the Databases list above.ElencoSelezioneSelection list
Specificare le tabelle o gli indici su cui verrà eseguita l'attività.Specify the tables or indexes affected by this task.Questa opzione non è disponibile quando si seleziona Tabelle e viste nella casella Oggetto.Not available when Tables and Views is selected in the Object box.Tutte le statistiche esistentiAll existing statistics
Consente di aggiornare le statistiche sia per le colonne che per gli indici.Update statistics for both columns and indexes.Solo statistiche colonneColumn statistics only
Consente di aggiornare soltanto le statistiche relative alle colonne.Only update column statistics.Utilizza l'opzioneWITH COLUMNS
.Uses theWITH COLUMNS
option.Solo statistiche indiciIndex statistics only
Consente di aggiornare soltanto le statistiche relative agli indici.Only update index statistics.Utilizza l'opzioneWITH INDEX
.Uses theWITH INDEX
option.Tipo analisiScan type
Tipo di analisi utilizzata per raccogliere statistiche aggiornate.Type of scan used to gather updated statistics.Analisi completaFull scan
Consente di leggere tutte le righe della tabella o della vista per raccogliere le statistiche.Read all rows in the table or view to gather the statistics.Campionamento perSample by
Specificare la percentuale della tabella o della vista indicizzata o il numero di righe da utilizzare come campione durante la raccolta di statistiche per tabelle o viste di grandi dimensioni.Specify the percentage of the table or indexed view, or the number of rows to sample when collecting statistics for larger tables or views.
Definizione attività Pulizia contenuto cronologiaDefine the History Cleanup Task
- Nella pagina Definizione attività Pulizia contenuto cronologia definire il database o i database in cui si desidera rimuovere la cronologia attività obsoleta.On the Define History Cleanup Task page, define the database or databases where you want to discard old task history.In questa attività vengono utilizzate le istruzioni
EXEC sp_purge_jobhistory
,EXEC sp_maintplan_delete_log
eEXEC sp_delete_backuphistory
per rimuovere le informazioni cronologiche dalle tabelle di msdb .This task uses theEXEC sp_purge_jobhistory
,EXEC sp_maintplan_delete_log
, andEXEC sp_delete_backuphistory
statements to remove history information from the msdb tables.Al termine, fare clic su Avanti.When finished, click Next.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.Selezionare i dati cronologici da eliminareSelect the historical data to delete
Scegliere il tipo di dati attività da eliminare.Chose the type of task data to delete/Cronologia operazioni di backup e ripristinoBackup and restore history
Se si mantengono i record relativi alla data di creazione di backup recenti, è possibile semplificare la creazione di un piano di recupero da parte di SQL ServerSQL Server in caso si desideri ripristinare un database.Retaining records of when recent backups were created can help SQL ServerSQL Server create a recovery plan when you want to restore a database.Il periodo di memorizzazione deve essere almeno pari alla frequenza dei backup completi del database.The retention period should be at least the frequency of full database backups.Cronologia processo di SQL Server AgentSQL Server Agent Job history
Questa cronologia si rivela utile per risolvere problemi relativi a processi non riusciti o per individuare le cause di determinate azioni sul database.This history can help you troubleshoot failed jobs, or determine why database actions occurred.Cronologia piano di manutenzioneMaintenance Plan history
Questa cronologia si rivela utile per risolvere problemi relativi a processi del piano di manutenzione non riusciti o per individuare le cause di determinate azioni sul database.This history can help you troubleshoot failed maintenance plan jobs, or determine why database actions occurred.Rimuovi dati presenti nella cronologia da più diRemove historical data older than
Specifica il periodo di permanenza nella cronologia oltre il quale gli elementi devono essere eliminati.Specify age of items that you want to delete.È possibile specificare Ora/e, Giorno/i, Settimana/e (impostazione predefinita), Mese/io Anno/iYou can specify Hour(s), Day(s), Week(s) (the default), Month(s), or Year(s)
Definizione attività Esegui processo di SQL Server AgentDefine the Execute Agent Job Task
- Nella pagina Definizione attività Esegui processo di SQL Server Agent scegliere il processo o i processi da eseguire in Processi di SQL Server Agent disponibili.On the Define Execute Agent Job Task page, under Available SQL Server Agent jobs, choose the job or jobs to run.Se non sono presenti processi di SQL Agent, non è possibile utilizzare questa opzione.This option will not be available if you have no SQL Agent jobs.In questa attività viene utilizzata l'istruzione
EXEC sp_start_job
.This task uses theEXEC sp_start_job
statement.Per altre informazioni, vedere sp_start_job (Transact-SQL) Al termine fare clic su Avanti.For more information, see sp_start_job (Transact-SQL)When finished, click Next.
Definizione attività BackupDefine Backup Tasks
- Nella pagina Definizione attività Backup database (completo) selezionare il database o i database su cui eseguire un backup completo.On the Define Backup Database (Full) Task page, select the database or databases on which to run a full backup.In questa attività viene utilizzata l'istruzione
BACKUP DATABASE
.This task uses theBACKUP DATABASE
statement.Per altre informazioni, vedere BACKUP (Transact-SQL).For more information, see BACKUP (Transact-SQL).Al termine, fare clic su Avanti.When finished, click Next.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.ElencoTipo di backupBackup type list
Visualizza il tipo di backup da eseguire.Displays the type of backup to be performed.Questo valore è di sola lettura.This is read-only.ElencoDatabaseDatabases list
Consente di specificare i database su cui verrà eseguita l'attività.Specify the databases affected by this task.Per ulteriori informazioni sulle opzioni disponibili in questo elenco, vedere il passaggio 9.See step 9, above, for more information on the available options on this list.Componente di cui eseguire il backupBackup component
Selezionare Database per eseguire il backup dell'intero database.Select Database to back up the entire database.Selezionare File e filegroup per eseguire il backup solo di una parte del database.Select File and filegroups to back up only a portion of the database.Quando si seleziona questa opzione, è necessario specificare il nome del file o del filegroup.If selected, provide the file or filegroup name.Se nella casella Database sono selezionati più database, è necessario specificare Database solo per Componente di cui eseguire il backup.When multiple databases are selected in the Databases box, only specify Databases for the Backup components.Per eseguire i backup di file o filegroup, creare un'attività per ogni database.To perform file or filegroup backups, create a task for each database.Queste opzioni sono disponibili solo se si sceglie un solo database nell'elenco Database .These options are only available if a single database is chosen from the Databases list above.Casella di controlloScadenza set di backupBackup set will expire check box
Indica quando è possibile sovrascrivere il set di backup per il backup specifico.Specifies when the backup set for this backup can be overwritten.Selezionare Dopo e immettere un numero di giorni alla scadenza oppure selezionare Il e immettere una data di scadenza.Select After and enter a number of days to expiration, or select On and enter a date of expiration.Questa opzione è disabilitata se è selezionato URL come destinazione di backup.This option is disabled if URL is selected as the backup destination.Backup suBack up to
Specifica il supporto su cui eseguire il backup del database.Specifies the medium on which to back up the database.Selezionare Disco, Nastroo URL.Select Disk, Tape, or URL.Sono disponibili solo i dispositivi nastro collegati al computer in cui è archiviato il database.Only tape devices attached to the computer containing the database are available.Backup database in uno o più fileBack up database(s) across one or more files
Fare clic su Aggiungi per aprire la finestra di dialogo Seleziona destinazione di backup .Click Add to open the Select Backup Destination dialog box.Questa opzione è disabilitata se è stato selezionato URL come destinazione di backup.This option is disabled if you selected URL as the backup destination.Fare clic su Rimuovi per rimuovere un file dalla casella.Click Remove to remove a file from the box.Fare clic su Contenuto per leggere l'intestazione del file e visualizzare il contenuto del backup corrente del file.Click Contents to read the file header and display the current backup contents of the file.Finestra di dialogoSeleziona destinazione di backupSelect Backup Destination dialog box
Selezionare il file, l'unità nastro o il dispositivo di backup come destinazione.Select the file, tape drive, or backup device for the backup destination.Questa opzione è disabilitata se è stato selezionato URL come destinazione di backup.This option is disabled if you selected URL as the backup destination.ElencoAzione per file di backup esistentiIf backup files exist list
Specifica il modo in cui devono essere gestiti i backup esistenti.Specify how to handle existing backups.Selezionare Accoda per aggiungere i nuovi backup dopo eventuali backup esistenti nel file o sul nastro.Select Append to add the new backups after any existing backups in the file or on the tape.Selezionare Sovrascrivi per rimuovere il contenuto meno recente dal file o dal nastro e sostituirlo con il nuovo backup.Select Overwrite to remove the old content of a file or tape, and replace it with this new backup.Crea un file di backup per ogni databaseCreate a backup file for every database
Creare un file di backup nel percorso specificato nella casella della cartella.Create a backup file in the location specified in the folder box.Viene creato un file per ciascun database selezionato.One file is created for each database selected.Questa opzione è disabilitata se è stato selezionato URL come destinazione di backup.This option is disabled if you selected URL as the backup destination.Casella di controlloCrea una sottodirectory per ogni databaseCreate a sub-directory for each database check box
Crea una sottodirectory nella directory specificata che contiene il database di cui si esegue il backup nell'ambito del piano di manutenzione.Create a sub-directory under the specified disk directory that contains the database backup for each database being backed up as part of the maintenance plan.IMPORTANTEIMPORTANT!La sottodirectory erediterà le autorizzazioni dalla relativa directory padre.The sub-directory will inherit permissions from the parent directory.Limitare le autorizzazioni per impedire l'accesso non autorizzato.Restrict permissions to avoid unauthorized access.CasellaCartellaFolder box
Specificare la cartella in cui inserire i file di database creati automaticamente.Specify the folder to contain the automatically created database files.Questa opzione è disabilitata se è stato selezionato URL come destinazione di backup.This option is disabled if you selected URL as the backup destination.Credenziali SQLSQL Credential
Selezionare le credenziali SQL usate per l'autenticazione in Archiviazione di Azure.Select a SQL Credential used to authenticate to Azure Storage.Se non si dispone di credenziali SQL esistenti utilizzabili, fare clic sul pulsante Crea per crearne delle nuove.If you do not have an existing SQL Credential you can use, click the Create button to create a new SQL Credential.IMPORTANTEIMPORTANT!La finestra di dialogo visualizzata quando si fa clic su Crea richiede un certificato di gestione o il profilo di pubblicazione per la sottoscrizione.The dialog that opens when you click Create requires a management certificate or the publishing profile for the subscription.Se non si dispone dell'accesso al certificato di gestione o al profilo di pubblicazione, è possibile creare le credenziali di SQL specificando il nome dell'account di archiviazione e le informazioni sulla chiave di accesso tramite Transact-SQL o SQL Server Management Studio.If you do not have access to the management certificate or publishing profile, you can create a SQL Credential by specifying the storage account name and access key information using Transact-SQL or SQL Server Management Studio.Vedere il codice di esempio nell'argomento Creare credenziali per creare le credenziali tramite Transact-SQL.See the sample code in the Create a Credential topic to create a credential using Transact-SQL.In alternativa, utilizzando SQL Server Management Studio, dall'istanza del motore di database, fare clic con il pulsante destro del mouse su Sicurezza, scegliere Nuovoe selezionare Credenziale.Alternatively, using SQL Server Management Studio, from the database engine instance, right-click Security, select New, and select Credential.Specificare il nome dell'account di archiviazione per Identity e la chiave di accesso nel campo Password .Specify the storage account name for Identity and the access key in the Password field.Contenitore di archiviazione di AzureAzure storage container
Specificare il nome del contenitore di Archiviazione di AzureSpecify the name of the Azure storage containerPrefisso URLURL prefix:
Viene generato automaticamente in base alle informazioni sull'account di archiviazione archiviate nelle credenziali SQL e al nome del contenitore di archiviazione di Azure specificato.This is automatically generated based on the storage account information stored in the SQL Credential, and Azure storage container name you specified.Si consiglia di non modificare le informazioni in questo campo a meno che non si usi un dominio con un formato diverso da <account di archiviazione.blob.core.windows.net.We recommend that you do not edit the information in this field unless you are using a domain that uses a format other than <storage account>.blob.core.windows.net.CasellaEstensione file di backupBackup file extension box
Specificare l'estensione da utilizzare per i file di backup.Specify the extension to use for the backup files.L'estensione predefinita è bak.The default is .bak.Casella di controlloVerifica integrità backupVerify backup integrity check box
Consente di verificare che il set di backup sia completo e che tutti i volumi siano leggibili.Verify that the backup set is complete and that all volumes are readable.Casella di controlloEsegui checksumPerform checksum check box
Verifica in ogni pagina la presenza di checksum e di pagine incomplete, se abilitati e disponibili, e genera un checksum per l'intero backup.Verify each page for checksum and torn page, if enabled and available, and generate a checksum for the entire backup.Casella di controlloContinua in caso di erroriContinue on error check box
Imposta il proseguimento dell'istruzione BACKUP anche in caso di errori, ad esempio checksum non validi o pagine incomplete.Instructs BACKUP to continue despite encountering errors such as invalid checksums or torn pages.Crittografia dei backupBackup Encryption
Per creare un backup crittografato, selezionare la casella di controllo Crittografa backup .To create an encrypted backup, check the Encrypt backup check box.Selezionare un algoritmo di crittografia da utilizzare per il passaggio di crittografia e specificare un certificato o una chiave asimmetrica da un elenco di chiavi asimmetriche o di certificati esistenti.Select an encryption algorithm to use for the encryption step, and provide a Certificate or Asymmetric key from a list of existing certificates or asymmetric keys.Gli algoritmi di crittografia disponibili sono:The available algorithms for encryption are:- AES 128AES 128
- AES 192AES 192
- AES 256AES 256
- Triple DESTriple DES
L'opzione di crittografia è disabilitata se si è scelto di eseguire l'accodamento a un set di backup esistente.The encryption option is disabled if you selected to append to existing backup set.È consigliabile eseguire il backup del certificato o delle chiavi e archiviarli in un percorso diverso da quello utilizzato per il backup crittografato.It is recommended practice to back up your certificate or keys and store them in a different location than the backup you encrypted.Sono supportate solo le chiavi che si trovano in Extensible Key Management (EKM).Only keys residing in the Extensible Key Management (EKM) are supported.Casella di controlloDimensione blocco , elencoBlock size check box, listSpecifica le dimensioni fisiche del blocco, in byte.Specifies the physical block size, in bytes.In genere, questa opzione influisce sulle prestazioni durante la scrittura nei dispositivi nastro, nelle matrici RAID o nella rete SAN.This option typically affects performance when writing to tape devices, RAID arrays, or SAN.Casella di controlloDimensioni massime trasferimento , elencoMax transfer size check box, listSpecifica le dimensioni massime, in byte, per il trasferimento tra SQL Server e i supporti di backup.Specifies the largest unit of transfer in bytes to be used between SQL Server and the backup media.ElencoImposta compressione backupSet backup compression list
In SQL Server 2008 Enterprise EditionSQL Server 2008 Enterprise o versioni successive, selezionare uno dei valori di compressione di backup seguenti:In SQL Server 2008 Enterprise EditionSQL Server 2008 Enterprise (or later versions), select one the following backup compression values:Utilizza l'impostazione predefinita del serverUse the default server setting Fare clic su questa opzione per utilizzare l'impostazione predefinita a livello di server.Click to use the server-level default.Questa impostazione predefinita è specificata dall'opzione di configurazione del server Valore predefinito di compressione backup .This default is set by the backup compression default server-configuration option.Per informazioni su come visualizzare l'impostazione corrente di questa opzione, vedere Visualizzare o configurare l'opzione di configurazione del server backup compression default.For information about how to view the current setting of this option, see View or Configure the backup compression default Server Configuration Option. Comprimi backupCompress backup Fare clic su questa opzione per comprimere il backup, indipendentemente dall'impostazione predefinita a livello di server.Click to compress the backup, regardless of the server-level default.
** Importante ** Per impostazione predefinita, la compressione aumenta significativamente l'uso della CPU e la CPU aggiuntiva usata dal processo di compressione può avere un impatto negativo sulle operazioni simultanee.** Important ** By default, compression significantly increases CPU usage, and the additional CPU consumed by the compression process might adversely affect concurrent operations.Potrebbe pertanto essere necessario creare backup compressi con priorità bassa in una sessione in cui l'utilizzo della CPU è limitato da Resource Governor.Therefore, you might want to create low-priority compressed backups in a session whose CPU usage is limited by the Resource Governor.Per ulteriori informazioni, vedere Utilizzo di Resource Governor per limitare l'utilizzo della CPU da parte della compressione dei backup (Transact-SQL).For more information, see Use Resource Governor to Limit CPU Usage by Backup Compression (Transact-SQL).Non comprimere il backupDo not compress backup Fare clic su questa opzione per creare un backup non compresso, indipendentemente dall'impostazione predefinita a livello di server.Click to create an uncompressed backup, regardless of the server-level default. - Nella pagina Definizione attività Backup database (differenziale) selezionare il database o i database su cui eseguire un backup parziale.On the Define Backup Database (Differential) Task page, select the database or databases on which to run a partial backup.Per ulteriori informazioni sulle opzioni disponibili in questa pagina, vedere l'elenco delle definizioni nel passaggio 16.See the definition list in step 16, above, for more information about the available options on this page.In questa attività viene utilizzata l'istruzione
BACKUP DATABASE ... WITH DIFFERENTIAL
.This task uses theBACKUP DATABASE ... WITH DIFFERENTIAL
statement.Per altre informazioni, vedere BACKUP (Transact-SQL).For more information, see BACKUP (Transact-SQL).Al termine, fare clic su Avanti.When finished, click Next. - Nella pagina Definizione attività Backup database (log trans) selezionare il database o i database su cui eseguire un backup per un log delle transazioni.On the Define Backup Database (Transaction Log) Task page, select the database or databases on which to run a backup for a transaction log.Per ulteriori informazioni sulle opzioni disponibili in questa pagina, vedere l'elenco delle definizioni nel passaggio 16.See the definition list in step 16, above, for more information about the available options on this page.In questa attività viene utilizzata l'istruzione
BACKUP LOG
.This task uses theBACKUP LOG
statement.Per altre informazioni, vedere BACKUP (Transact-SQL).For more information, see BACKUP (Transact-SQL).Al termine, fare clic su Avanti.When finished, click Next.
Definizione attività Pulizia file manutenzioneDefine Maintenance Cleanup Tasks
- Nella pagina Definizione attività Pulizia file manutenzione specificare i tipi di file da eliminare come parte del piano di manutenzione, inclusi report di testo creati dai piani di manutenzione e file di backup del database.On the Define Maintenance Cleanup Task page, specify the types of files to delete as part of the maintenance plan, including text reports created by maintenance plans and database backup files.In questa attività viene utilizzata l'istruzione
EXEC xp_delete_file
.This task uses theEXEC xp_delete_file
statement.Al termine, fare clic su Avanti.When finished, click Next.IMPORTANTEIMPORTANT!!Tramite questa attività non si eliminano automaticamente i file nelle sottocartelle della directory specificata.This task does not automatically delete files in the subfolders of the specified directory.Si tratta di una misura precauzionale per ridurre le probabilità di un attacco dannoso che utilizzi l'attività Pulizia file manutenzione per eliminare i file.This precaution reduces the possibility of a malicious attack that uses the Maintenance Cleanup task to delete files.Per eliminare i file nelle sottocartelle di primo livello è necessario selezionare Includi sottocartelle di primo livello.If you want to delete files in first-level subfolders, you must select Include first-level subfolders.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.Elimina i file del tipo seguenteDelete files of the following type
Specifica il tipo di file da eliminare.Specify the type of files to be deleted.File di backupBackup files
Elimina i file di backup di database.Delete database backup files.Report in formato testo piano di manutenzioneMaintenance Plan text reports
Elimina i report in formato testo relativi a piani di manutenzione eseguiti in precedenza.Delete text reports of previously run maintenance plans.Percorso del fileFile location
Specifica il percorso dei file da eliminare.Specify path to files to be deleted.Elimina file specificoDelete specific file
Elimina il file specifico indicato nella casella di testo Nome file .Delete the specific file provided in the File name text box.Cerca nella cartella ed elimina i file in base all'estensioneSearch folder and delete files based on an extension
Consente di eliminare tutti i file con l'estensione specificata contenuti nella cartella indicata.Delete all files with the specified extension in the specified folder.Utilizzare questa opzione per eliminare più file contemporaneamente, ad esempio tutti i file di backup con estensione bak contenuti nella cartella specificata.Use this to delete multiple files at once, such as all backup files in the Tuesday folder with the .bak extension.CasellaCartellaFolder box
Percorso e nome della cartella contenente i file da eliminare.Path and name of the folder containing the files to be deleted.CasellaEstensione fileFile extension box
Indica l'estensione dei file da eliminare.Provide the file extension of the files to be deleted.Per eliminare più file contemporaneamente, ad esempio tutti i file di backup con estensione bak contenuti nella cartella specificata, specificare l'estensione bak.To delete multiple files at one time, like all backup files with the .bak extension in the Tuesday folder, specify .bak.Casella di controlloIncludi sottocartelle di primo livelloInclude first-level subfolders check box
Vengono eliminati i file con l'estensione specificata in Estensione file dalle sottocartelle di primo livello nella cartella specificata in Cartella.Delete files with the extension specified for File extension from first-level subfolders under the folder specified in Folder.Casella di controlloElimina i file in base alla data del file al momento dell'esecuzione dell'attivitàDelete files based on the age of the file at task run time check box
Specificare il periodo di memorizzazione minimo trascorso il quale i file verranno eliminati, indicando un numero e un'unità di tempo nella casella Elimina i file con data anteriore a .Specify the minimum age of the files that you want to delete by providing a number, and unit of time in the Delete files older than the following box.Elimina i file con data anteriore aDelete files older than the following
Specificare il periodo di memorizzazione minimo trascorso il quale i file verranno eliminati indicando un numero e un'unità di tempo (Ora/e, Giorno/i, Settimana/e, Mese/io Anno/i).Specify the minimum age of the files that you want to delete by providing a number, and unit of time (Hour, Day, Week, Month, or Year).I file con data anteriore alla data specificata verranno eliminati.Files older than the time frame specified will be deleted.
Selezione opzioni reportSelect Report Options
- Nella pagina Selezione opzioni report selezionare le opzioni per salvare o distribuire un report delle azioni del piano di manutenzione.On the Select Report Options page, select options for saving or distributing a report of the maintenance plan actions.In questa attività viene utilizzata l'istruzione
EXEC sp_notify_operator
.This task uses theEXEC sp_notify_operator
statement.Per altre informazioni, vedere sp_notify_operator (Transact-SQL).Al termine fare clic su Avanti.For more information, see sp_notify_operator (Transact-SQL).When finished, click Next.In questa pagina sono disponibili le opzioni seguenti.The following options are available on this page.Casella di controlloScrivi report in un file di testoWrite a report to a text file check box
Salva il report in un file.Save the report in a file.CasellaPercorso cartellaFolder location box
Specifica il percorso del file che conterrà il report.Specify the location of the file that will contain the report.Casella di controlloInvia report tramite posta elettronicaE-mail report check box
Inviare un messaggio di posta elettronica quando un'attività non viene completata in seguito a un errore.Send an e-mail when a task fails.Per usare questa attività, l'opzione Posta elettronica database deve essere abilitata e configurata correttamente con MSDB come database host della posta elettronica e un operatore MicrosoftMicrosoftSQL ServerSQL Server Agent deve avere un indirizzo di posta elettronica valido.To use this task you must have Database Mail enabled and correctly configured with MSDB as a Mail Host Database, and have a MicrosoftMicrosoftSQL ServerSQL Server Agent operator with a valid e-mail address.Operatore agenteAgent operator
Consente di specificare il destinatario del messaggio di posta elettronica.Specify the recipient of the e-mail.Profilo postaMail profile
Specificare il profilo mediante il quale viene definito il mittente del messaggio di posta elettronica.Specify the profile that defines the sender of the e-mail.
Completamento procedura guidataComplete the Wizard
- Nella pagina Completamento procedura guidata verificare le scelte effettuate nelle pagine precedenti, quindi scegliere Fine.On the Complete the Wizard page, verify the choices made on the previous pages, and click Finish.
- Nella pagina Stato Creazione guidata piano di manutenzione monitorare le informazioni di stato sulle azioni della Creazione guidata piano di manutenzione.On the Maintenance Wizard Progress page, monitor status information about the actions of the Maintenance Plan Wizard.A seconda delle opzioni selezionate nella procedura guidata, la pagina di stato può contenere una o più azioni.Depending on the options that you selected in the wizard, the progress page might contain one or more actions.Nella casella superiore viene visualizzato lo stato complessivo della procedura guidata e viene indicato il numero di messaggi di stato, di errore e di avviso restituiti durante l'esecuzione della procedura guidata.The top box displays the overall status of the wizard and the number of status, error, and warning messages that the wizard has received.Nella pagina Stato Creazione guidata piano di manutenzione sono disponibili le opzioni seguenti:The following options are available on the Maintenance Wizard Progress page:DettagliDetails
Consente di visualizzare i messaggi di azione, di stato e di altro tipo restituiti dall'azione eseguita nella procedura guidata.Provides the action, status, and any messages that are returned from action taken by the wizard.AzioneAction
Specifica il tipo e il nome di ciascuna azione.Specifies the type and name of each action.StatoStatus
Indica se l'intera azione della procedura guidata ha restituito il valore Esito positivo o Esito negativo.Indicates whether the wizard action as a whole returned the value of Success or Failure.MessageMessage
Fornisce tutti i messaggi di errore o di avviso restituiti dal processo.Provides any error or warning messages that are returned from the process.ReportReport
Crea un report contenente i risultati della Creazione guidata partizione.Creates a report that contains the results of the Create Partition Wizard.Le opzioni sono Visualizza report, Salva report su file, Copia report negli Appuntie Invia report per posta elettronica.The options are View Report, Save Report to File, Copy Report to Clipboard, and Send Report as Email.Visualizza reportView Report
Apre la finestra di dialogo Visualizza report in cui è contenuto un report di testo dello stato della Creazione guidata partizione.Opens the View Report dialog box, which contains a text report of the progress of the Create Partition Wizard.Salva report su fileSave Report to File
Apre la finestra di dialogo Salva report con nome .Opens the Save Report As dialog box.Copia report negli AppuntiCopy Report to Clipboard
Copia i risultati del report dello stato della procedura guidata negli Appunti.Copies the results of the wizard's progress report to the Clipboard.Invia report per posta elettronicaSend Report as Email
Copia i risultati del report dello stato della procedura guidata in un messaggio di posta elettronica.Copies the results of the wizard's progress report into an email message.