Server.AttachDatabase Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| AttachDatabase(String, StringCollection) |
Joindre une base de données |
| AttachDatabase(String, StringCollection, AttachOptions) |
Joindre une base de données |
| AttachDatabase(String, StringCollection, String) |
Joindre une base de données |
| AttachDatabase(String, StringCollection, String, AttachOptions) |
Joindre une base de données |
AttachDatabase(String, StringCollection)
Joindre une base de données
public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection -> unit
Public Sub AttachDatabase (name As String, files As StringCollection)
Paramètres
- name
- String
nom de la base de données
- files
- StringCollection
liste de fichiers
S’applique à
AttachDatabase(String, StringCollection, AttachOptions)
Joindre une base de données
public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files, Microsoft.SqlServer.Management.Smo.AttachOptions attachOptions);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection * Microsoft.SqlServer.Management.Smo.AttachOptions -> unit
Public Sub AttachDatabase (name As String, files As StringCollection, attachOptions As AttachOptions)
Paramètres
- name
- String
nom de la base de données
- files
- StringCollection
liste de fichiers
- attachOptions
- AttachOptions
options utilisées lors de l’attachement d’une base de données
S’applique à
AttachDatabase(String, StringCollection, String)
Joindre une base de données
public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files, string owner);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection * string -> unit
Public Sub AttachDatabase (name As String, files As StringCollection, owner As String)
Paramètres
- name
- String
nom de la base de données
- files
- StringCollection
liste des fichiers à joindre
- owner
- String
nouveau nom de propriétaire
S’applique à
AttachDatabase(String, StringCollection, String, AttachOptions)
Joindre une base de données
public void AttachDatabase(string name, System.Collections.Specialized.StringCollection files, string owner, Microsoft.SqlServer.Management.Smo.AttachOptions attachOptions);
member this.AttachDatabase : string * System.Collections.Specialized.StringCollection * string * Microsoft.SqlServer.Management.Smo.AttachOptions -> unit
Public Sub AttachDatabase (name As String, files As StringCollection, owner As String, attachOptions As AttachOptions)
Paramètres
- name
- String
nom de la base de données
- files
- StringCollection
liste de fichiers
- owner
- String
nouveau nom de propriétaire
- attachOptions
- AttachOptions
options utilisées lors de l’attachement d’une base de données