KillDatabase Method

SQLServer Object

Description

Removes a damaged database. Use this when Database.Remove fails.

Visual Basic

SQLServer.KillDatabase ( [DatabaseName :=] idDatabase )

C++

HRESULT pSQLServer->KillDatabase ( SQLOLE_LPCSTR idDatabase );

Elements

Element Type Description

idDatabase Identifier Database name

Reference

DBCC DBREPAIR