|
dbcc |
dbcc
{ checktable({table_name | table_id
} [, skip_ncindex]) |
checkdb [(database_name [, skip_ncindex}) |
checkalloc [(database_name [, fix |
nofix])] |
tablealloc ({table_name |
table_id}
[, {full | optimized | fast | null}
[, fix | nofix]]) |
indexalloc ({table_name |
table_id}, index_id
[, {full | optimized | fast | null}
[, fix | nofix]]) |
checkcatalog [(database_name)] |
dbrepair (database_name, dropdb) |
reindex ({table_name |
table_id}) |
fix_text ({table_name |
table_id}) }
|
dbcc checkalloc(libros)
dbcc tablealloc(editores, null, nofix)
dbcc checktable(ventas)
dbcc indexalloc ("libros..autor-titulo", 2,
full)
dbcc dbrepair(libros, dropdb)
dbcc reindex(titulos)
dbcc fix_text(textest)
|
Es el inspector de consistencia de la base de datos
(dbcc) revisa la consistencia física y lógica de una
base de datos. dbcc debería ser usado regularmente, en una
revisión periódica o bien cuando se sospecha de daño
Database Consistency Checker (dbcc
) checks the logical and physical consistency of a database. dbcc
should be used regularly as a periodic check or if damage is suspected
|
| dump transaction |
dump transaction |
dump transaction |
Makes a copy of transaction log and removes the inactive
portion.
no_truncate copies the log without truncating
it. Use when the databse is inaccesible after device failure
truncate_only truncates the log without copying
it. Use for databses without separating log segment and databases for which
you do not need an up_to_date dump
no_log truncates a log without copying it
and without logging the event. Use only as a last resort , when your
usual method of dumping the transaction log fails because of insufficient
log space
|