다음을 통해 공유


KillDatabase Method

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The KillDatabase method drops a database from the referenced Microsoft SQL Server installation, regardless of the status or availability of the database.

구문

object
.KillDatabase(
Database
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • Database
    String specifying an existing database by name.

Prototype (C/C++)

HRESULT KillDatabase(
SQLDMO_LPCSTR szDatabase);

주의

The Remove method of the Database object and Databases collection drops a referenced database. A database drop can fail if the database is offline. When the Remove method of the Databaseobject or Databases collection fails, use the KillDatabase method to force a drop of the database.

Applies To: