martes, 10 de diciembre de 2013

sqlserver REINDEX and UPDATESTATS


Para reindexar y actualizar estadisticas de sql server



USE MyDatabase
GO
EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?', ' ', 80)"
GO
EXEC sp_updatestats
GO

No hay comentarios:

Publicar un comentario