Server.AttachDatabase Metodo

Definizione

Overload

AttachDatabase(String, StringCollection)

Allega database

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)

Parametri

name
String

nome del database

files
StringCollection

elenco di file

Si applica a

AttachDatabase(String, StringCollection, AttachOptions)

Allega database

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)

Parametri

name
String

nome del database

files
StringCollection

elenco di file

attachOptions
AttachOptions

opzioni utilizzate per il collegamento del database

Si applica a

AttachDatabase(String, StringCollection, String)

Allega database

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)

Parametri

name
String

nome del database

files
StringCollection

elenco di file da allegare

owner
String

nuovo nome proprietario

Si applica a

AttachDatabase(String, StringCollection, String, AttachOptions)

Allega database

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)

Parametri

name
String

nome del database

files
StringCollection

elenco di file

owner
String

nuovo nome proprietario

attachOptions
AttachOptions

opzioni utilizzate per il collegamento del database

Si applica a