Server.AttachDatabase Método

Definição

Sobrecargas

AttachDatabase(String, StringCollection)

Anexar banco de dados

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

nome do banco de dados

files
StringCollection

lista de arquivos

Aplica-se a

AttachDatabase(String, StringCollection, AttachOptions)

Anexar banco de dados

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

nome do banco de dados

files
StringCollection

lista de arquivos

attachOptions
AttachOptions

opções usadas ao anexar o banco de dados

Aplica-se a

AttachDatabase(String, StringCollection, String)

Anexar banco de dados

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

nome do banco de dados

files
StringCollection

lista de arquivos a serem anexados

owner
String

novo nome do proprietário

Aplica-se a

AttachDatabase(String, StringCollection, String, AttachOptions)

Anexar banco de dados

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

nome do banco de dados

files
StringCollection

lista de arquivos

owner
String

novo nome do proprietário

attachOptions
AttachOptions

opções usadas ao anexar o banco de dados

Aplica-se a