다음을 통해 공유


DetachDatabase 메서드

데이터베이스를 SQL Server 인스턴스에서 분리합니다. 

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

오버로드 목록

  이름 설명
공용 메서드 DetachDatabase(String, Boolean) 데이터베이스가 분리되기 전에 통계를 업데이트하는 옵션을 사용하여 SQL Server 인스턴스에서 지정한 데이터베이스를 분리합니다.
공용 메서드 DetachDatabase(String, Boolean, Boolean) 데이터베이스가 분리되기 전에 통계를 업데이트하는 옵션을 사용하여 SQL Server 인스턴스에서 지정한 데이터베이스를 분리합니다.

맨 위로 이동

주의

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.