Backup.LogTruncation Property
Gets or sets the method used to truncate the database log as part of the backup operation.
Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public Property LogTruncation As BackupTruncateLogType
public BackupTruncateLogType LogTruncation { get; set; }
public:
property BackupTruncateLogType LogTruncation {
BackupTruncateLogType get ();
void set (BackupTruncateLogType value);
}
/** @property */
public BackupTruncateLogType get_LogTruncation ()
/** @property */
public void set_LogTruncation (BackupTruncateLogType value)
public function get LogTruncation () : BackupTruncateLogType
public function set LogTruncation (value : BackupTruncateLogType)
Valeur de propriété
A BackupTruncateLogType object value that specifies the log truncation option that has been selected. By default, the value is set to Truncate.
Notes
You can use the BackupTruncateLogType object to select one of the following log truncation options:
Truncate only. The log is truncated and is not backed up.
No truncate. The log is backed up and is not truncated.
Truncate (default). The log is backed up, and is then truncated.
Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.
Exemple
How to: Back Up Databases and Transaction Logs in Visual Basic .NET
Sécurité des threads
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plateformes
Plateformes de développement
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Plateformes cibles
Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.
Voir aussi
Référence
Backup Class
Backup Members
Microsoft.SqlServer.Management.Smo Namespace
Autres ressources
Sauvegarde et restauration de bases de données dans SQL Server
BACKUP (Transact-SQL)