SQLServer Object
Removes a damaged database. Use this when Database.Remove fails.
SQLServer.KillDatabase ( [DatabaseName :=] idDatabase )
HRESULT pSQLServer->KillDatabase ( SQLOLE_LPCSTR idDatabase );
Element | Type | Description |
---|
idDatabase | Identifier | Database name |
DBCC DBREPAIR