Server.AttachDatabase Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| AttachDatabase(String, StringCollection) |
Datenbank anfügen |
| AttachDatabase(String, StringCollection, AttachOptions) |
Datenbank anfügen |
| AttachDatabase(String, StringCollection, String) |
Datenbank anfügen |
| AttachDatabase(String, StringCollection, String, AttachOptions) |
Datenbank anfügen |
AttachDatabase(String, StringCollection)
Datenbank anfügen
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
Datenbanknamen
- files
- StringCollection
Dateiliste
Gilt für:
AttachDatabase(String, StringCollection, AttachOptions)
Datenbank anfügen
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
Datenbanknamen
- files
- StringCollection
Dateiliste
- attachOptions
- AttachOptions
Optionen, die beim Anfügen der Datenbank verwendet werden
Gilt für:
AttachDatabase(String, StringCollection, String)
Datenbank anfügen
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
Datenbanknamen
- files
- StringCollection
Liste der anzufügenden Dateien
- owner
- String
Neuer Besitzername
Gilt für:
AttachDatabase(String, StringCollection, String, AttachOptions)
Datenbank anfügen
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
Datenbanknamen
- files
- StringCollection
Dateiliste
- owner
- String
Neuer Besitzername
- attachOptions
- AttachOptions
Optionen, die beim Anfügen der Datenbank verwendet werden