Server.AttachDatabase Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| AttachDatabase(String, StringCollection) |
Adjuntar base de datos |
| AttachDatabase(String, StringCollection, AttachOptions) |
Adjuntar base de datos |
| AttachDatabase(String, StringCollection, String) |
Adjuntar base de datos |
| AttachDatabase(String, StringCollection, String, AttachOptions) |
Adjuntar base de datos |
AttachDatabase(String, StringCollection)
Adjuntar base de datos
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)
Parámetros
- name
- String
El nombre de la base de datos
- files
- StringCollection
lista de archivos
Se aplica a
AttachDatabase(String, StringCollection, AttachOptions)
Adjuntar base de datos
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)
Parámetros
- name
- String
El nombre de la base de datos
- files
- StringCollection
lista de archivos
- attachOptions
- AttachOptions
opciones usadas al adjuntar la base de datos
Se aplica a
AttachDatabase(String, StringCollection, String)
Adjuntar base de datos
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)
Parámetros
- name
- String
El nombre de la base de datos
- files
- StringCollection
lista de archivos que se van a adjuntar
- owner
- String
nuevo nombre de propietario
Se aplica a
AttachDatabase(String, StringCollection, String, AttachOptions)
Adjuntar base de datos
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)
Parámetros
- name
- String
El nombre de la base de datos
- files
- StringCollection
lista de archivos
- owner
- String
nuevo nombre de propietario
- attachOptions
- AttachOptions
opciones usadas al adjuntar la base de datos