Switch | Argument | Required | Description |
-? | N | N | Displays help for the ExpressMaint utility |
-S | Y | Y | The SQL Server for ExpressMaint to connect to |
-D | Y | Y | The target database for the maintenance operation. Valid values are a single database name, ALL_USER which will process all user databases, ALL_SYSTEM which will process all system databases and ALL which will process all databases |
-T | Y | Y | The type of maintenance operation to be performed. Valid values are
|
-B | Y | N | The base folder to write the backups to. Sub folders will be created for each database |
-V | N | N | Indicates whether to verify the backup file |
-BU | Y | N | The unit of measure for the -BV argument. Valid values are minutes, hours, days, weeks. The combination of these two arguments determines for how long old backup files are kept. Required if -B argument is specified. |
-BV | Y | N | The time period of old backups to keep. Required if -B argument is specified. |
-R | Y | N | The folder where maintenance reports are written to |
-RU | Y | N | The unit of measure for the -RV argument. Valid values are minutes, hours, days, weeks. The combination of these two parameters determines for how long old reports are kept. Required if -R argument is specified. |
-RV | Y | N | The time period or number of copies of old reports to keep. Required if -R argument is specified. |
-A | N | N | Indicates whether to check the archive bit on a backup file before deleting it. This is a safety check to prevent deletion of files that have not been backed up onto tape. |
-DS | N | N | If this switch is specified then the timestamp for backup and report files is appended to the front of the filename (the default is to append to the end of the filename) |
-TO | Y | N | This switch allows the setting of a statement timeout specified in minutes (e.g. -TO 10). If not specified, the default is 10 minutes. |
-C | N | N | This switch allows multi database maintenance operations (ALL,ALL_USER,ALL_SYSTEM) to continue if an error is encountered with one or more databases |
评论