Server.AttachDatabase Server.AttachDatabase Server.AttachDatabase Method

Definition

Overloads

AttachDatabase(String, StringCollection) AttachDatabase(String, StringCollection) AttachDatabase(String, StringCollection)

Attach Database

AttachDatabase(String, StringCollection, AttachOptions) AttachDatabase(String, StringCollection, AttachOptions)

Attach Database

AttachDatabase(String, StringCollection, String) AttachDatabase(String, StringCollection, String) AttachDatabase(String, StringCollection, String)

Attach Database

AttachDatabase(String, StringCollection, String, AttachOptions) AttachDatabase(String, StringCollection, String, AttachOptions)

Attach Database

AttachDatabase(String, StringCollection) AttachDatabase(String, StringCollection) AttachDatabase(String, StringCollection)

Attach 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)

Parameters

name
String String String

database name

AttachDatabase(String, StringCollection, AttachOptions) AttachDatabase(String, StringCollection, AttachOptions)

Attach 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

Parameters

name
String String String

database name

attachOptions
AttachOptions AttachOptions AttachOptions

options used when attaching database

AttachDatabase(String, StringCollection, String) AttachDatabase(String, StringCollection, String) AttachDatabase(String, StringCollection, String)

Attach 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)

Parameters

name
String String String

database name

files
StringCollection StringCollection StringCollection

list of files to attach

owner
String String String

new owner name

AttachDatabase(String, StringCollection, String, AttachOptions) AttachDatabase(String, StringCollection, String, AttachOptions)

Attach 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

Parameters

name
String String String

database name

owner
String String String

new owner name

attachOptions
AttachOptions AttachOptions AttachOptions

options used when attaching database

Applies to