Analyzes faults reported by the checkstorage operation corresponding to the specified operation ID, or date, and generates a list of recommended corrective actions for the specified object in the target database.
sp_dbcc_recommendations dbname [,“date”[, opid [, “objectname”]]]
sp_dbcc_recommendations my_db, null, 2, ‘t1’
sp_dbcc_recommendations my_db, ‘Sep 15 2002 7:10:18:463PM’
sp_dbcc_recommendations my_db
sp_dbcc_recomendations analyzes faults reported by the checkstorage operation corresponding to the specified operation ID, or date, and generates a list of recommended corrective actions for the specified object in the target database
The permission checks for sp_dbcc_recommendations differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be the database owner of dbccdb (or dbccalt), or report checkstorage privilege on the specified database. |
Disabled | With granular permissions disabled, any valid user of the specified database can run sp_dbcc_recommendations. |