Deletes from dbccdb all the information related to the specified target database.
specifies the name of the target database for which you want the configuration information deleted. If you do not specify a value for dbname, Adaptive Server deletes data from all databases in dbccdb..dbcc_config. If the target database is dbccdb, and dbccalt exists, Adaptive Server deletes the data from dbccalt.
Deletes all information for the database named engdb from dbccdb:
All information for database engdb has been deleted from dbccdb.
sp_dbcc_deletedb deletes from dbccdb all the information related to the specified target database, including configuration information and the results of previous dbcc checkstorage operations.
If the deleted database is dbccdb, and the dbccalt database exists, sp_dbcc_deletedb deletes the configuration information and results of dbccdb from dbccalt.
To remove the results of dbcc checkstorage operations created before a specific date, use sp_dbcc_deletehistory.
See the System Administration Guide for information about the dbccalt database.
Only a System Administrator or the Database Owner can run sp_dbcc_deletedb.
dbcc stored procedures sp_dbcc_deletehistory, sp_dbcc_evaluatedb
System procedures sp_plan_dbccdb