Server.AttachDatabase Metode

Definisi

Overload

AttachDatabase(String, StringCollection)

Pasang Basis Data

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)

Parameter

name
String

nama database

files
StringCollection

daftar file

Berlaku untuk

AttachDatabase(String, StringCollection, AttachOptions)

Pasang Basis Data

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)

Parameter

name
String

nama database

files
StringCollection

daftar file

attachOptions
AttachOptions

opsi yang digunakan saat melampirkan database

Berlaku untuk

AttachDatabase(String, StringCollection, String)

Pasang Basis Data

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)

Parameter

name
String

nama database

files
StringCollection

daftar file yang akan dilampirkan

owner
String

nama pemilik baru

Berlaku untuk

AttachDatabase(String, StringCollection, String, AttachOptions)

Pasang Basis Data

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)

Parameter

name
String

nama database

files
StringCollection

daftar file

owner
String

nama pemilik baru

attachOptions
AttachOptions

opsi yang digunakan saat melampirkan database

Berlaku untuk