Partager via


ApplicationDatabaseOptions.DefaultFileGroup Property

Gets or sets the default filegroup for the application database.

Espace de noms: Microsoft.SqlServer.Management.Nmo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Property DefaultFileGroup As String
public string DefaultFileGroup { get; set; }
public:
property String^ DefaultFileGroup {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_DefaultFileGroup ()

/** @property */
public void set_DefaultFileGroup (String value)
public function get DefaultFileGroup () : String

public function set DefaultFileGroup (value : String)

Valeur de propriété

A String containing name of the default filegroup.

Notes

The default filegroup must be the name of one of the ApplicationDatabaseFileGroup objects for this application. Any application object without a specified filegroup is created in the default filegroup. If you do not specify a default filegroup, the default is PRIMARY.

Exemple

The following examples show how to set the application database collation:

adb.DefaultFileGroup = "PRIMARY";
adb.DefaultFileGroup = "PRIMARY"

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

ApplicationDatabaseOptions Class
ApplicationDatabaseOptions Members
Microsoft.SqlServer.Management.Nmo Namespace

Autres ressources

Définition de la base de données d'application
DefaultFileGroup Element (ADF)