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

데이터베이스를 연결할 때 사용되는 옵션

적용 대상