Server.AttachDatabase 메서드

보호된 멤버 포함
상속된 멤버 포함

Attaches an existing database that is made up of one or more files to the instance of SQL Server. 

이 멤버는 오버로드됩니다. 구문, 사용법 및 예제를 포함하여 이 멤버에 대한 전체 정보를 확인하려면 오버로드 목록에서 이름을 클릭하십시오.

오버로드 목록

  이름 설명
공용 메서드 AttachDatabase(String, StringCollection) Attaches an existing database that is made up of one or more files to the instance of SQL Server with the specified name and using the specified data files. 
공용 메서드 AttachDatabase(String, StringCollection, AttachOptions) Attaches an existing database that is made up of one or more files to the instance of SQL Server that has the specified name and using the specified data files and attachment options. 
공용 메서드 AttachDatabase(String, StringCollection, String) Attaches an existing database that is made up of one or more files to the instance of SQL Server with the specified name and using the specified data files. 
공용 메서드 AttachDatabase(String, StringCollection, String, AttachOptions) Attaches an existing database that is made up of one or more files to the instance of SQL Server by using the specified name, data files, and attachment options. 

맨 위로 이동

주의

The data and transaction log files of a database can be detached and then reattached to the same or another instance of SQL Server. Detaching and attaching a database is useful if you want to change the database to a different instance of SQL Server on the same computer, or if you want to move the database.

참고 항목

참조

Server 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스