Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Initializes a new instance of the ApplicationDatabaseLogFile class with a parent ApplicationDatabaseOptions object and a name.
Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public Sub New ( _
applicationDatabaseOptions As ApplicationDatabaseOptions, _
name As String _
)
public ApplicationDatabaseLogFile (
ApplicationDatabaseOptions applicationDatabaseOptions,
string name
)
public:
ApplicationDatabaseLogFile (
ApplicationDatabaseOptions^ applicationDatabaseOptions,
String^ name
)
public ApplicationDatabaseLogFile (
ApplicationDatabaseOptions applicationDatabaseOptions,
String name
)
public function ApplicationDatabaseLogFile (
applicationDatabaseOptions : ApplicationDatabaseOptions,
name : String
)
Paramètres
- applicationDatabaseOptions
The parent ApplicationDatabaseOptions object for the application database.
name
A String, up to 128 characters in length, specifying the logical name of the log file.You cannot change the name. To alter an application database after creating the application, use the Microsoft SQL Server tools, such as SQL Server Management Studio.
Notes
Texte mis à jour :5 décembre 2005
You must set the FileName property. Other properties are optional.
The logical name is used to refer to log file during any log management tasks. For more information, see the logical_file_name parameter in the CREATE DATABASE (Transact-SQL) topic.
Exemple
The following examples show how to define a log file for the application database:
ApplicationDatabaseLogFile adb_log =
new ApplicationDatabaseLogFile(adb, "MyApp_LogFile1");
adb_log.FileName = @"C:\NS\Full\MyApp_LogFile1.ldf";
adb_log.InitialSize = "5MB";
adb_log.MaxSize = "20MB";
adb_log.GrowthIncrement = "10%";
adb.ApplicationDatabaseLogFiles.Add(adb_log);
Dim adb_log As ApplicationDatabaseLogFile = _
New ApplicationDatabaseLogFile(adb, "MyApp_LogFile1")
adb_log.FileName = "C:\NS\Full\MyApp_LogFile1.ldf"
adb_log.InitialSize = "5MB"
adb_log.MaxSize = "20MB"
adb_log.GrowthIncrement = "10%"
adb.ApplicationDatabaseLogFiles.Add(adb_log)
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
ApplicationDatabaseLogFile Class
ApplicationDatabaseLogFile Members
Microsoft.SqlServer.Management.Nmo Namespace
Autres ressources
CREATE DATABASE (Transact-SQL)
Définition de la base de données d'application
LogFile Element (ADF)