Server.AttachDatabase メソッド

定義

オーバーロード

AttachDatabase(String, StringCollection)

データベースを接続

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)

パラメーター

name
String

データベース名

files
StringCollection

ファイル リスト

適用対象

AttachDatabase(String, StringCollection, AttachOptions)

データベースを接続

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)

パラメーター

name
String

データベース名

files
StringCollection

ファイル リスト

attachOptions
AttachOptions

データベースをアタッチするときに使用されるオプション

適用対象

AttachDatabase(String, StringCollection, String)

データベースを接続

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)

パラメーター

name
String

データベース名

files
StringCollection

添付するファイルの一覧

owner
String

新しい所有者名

適用対象

AttachDatabase(String, StringCollection, String, AttachOptions)

データベースを接続

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)

パラメーター

name
String

データベース名

files
StringCollection

ファイル リスト

owner
String

新しい所有者名

attachOptions
AttachOptions

データベースをアタッチするときに使用されるオプション

適用対象